org.hibernate.NonUniqueResultException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
The core functionality of Hibernate
//$Id: NonUniqueResultException.java 3890 2004-06-03 16:31:32Z steveebersole $
package org.hibernate;
/**
* Thrown when the application calls Query.uniqueResult() 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 );
}
}