01: //$Id: NonUniqueResultException.java 3890 2004-06-03 16:31:32Z steveebersole $
02: package org.hibernate;
03:
04: /**
05: * Thrown when the application calls <tt>Query.uniqueResult()</tt> and
06: * the query returned more than one result. Unlike all other Hibernate
07: * exceptions, this one is recoverable!
08: *
09: * @author Gavin King
10: */
11: public class NonUniqueResultException extends HibernateException {
12:
13: public NonUniqueResultException(int resultCount) {
14: super ("query did not return a unique result: " + resultCount);
15: }
16:
17: }
|