KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > NonUniqueResultException


1 //$Id: NonUniqueResultException.java,v 1.1 2004/06/03 16:30:04 steveebersole Exp $
2
package org.hibernate;
3
4 /**
5  * Thrown when the application calls <tt>Query.uniqueResult()</tt> and
6  * the query returned more than one result. Unlike all other Hibernate
7  * exceptions, this one is recoverable!
8  *
9  * @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 }
18
Popular Tags