Open Source Repository

Home /hibernate/hibernate-3.2.4.ga | Repository Home



org/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 );
  }

}