FileDocCategorySizeDatePackage
NonUniqueResultException.javaAPI DocHibernate 3.2.5511Thu Jun 03 11:31:32 BST 2004org.hibernate

NonUniqueResultException.java

//$Id: NonUniqueResultException.java 3890 2004-06-03 16:31:32Z steveebersole $
package org.hibernate;

/**
 * Thrown when the application calls <tt>Query.uniqueResult()</tt> and
 * the query returned more than one result. Unlike all other Hibernate
 * exceptions, this one is recoverable!
 *
 * @author Gavin King
 */
public class NonUniqueResultException extends HibernateException {

	public NonUniqueResultException(int resultCount) {
		super( "query did not return a unique result: " + resultCount );
	}

}