org.hibernate

Class NonUniqueResultException

Implemented Interfaces:
Nestable

public class NonUniqueResultException
extends HibernateException

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

Field Summary

Fields inherited from class org.hibernate.exception.NestableRuntimeException

delegate

Constructor Summary

NonUniqueResultException(int resultCount)

Method Summary

Methods inherited from class org.hibernate.exception.NestableRuntimeException

getCause, getMessage, getMessage, getMessages, getThrowable, getThrowableCount, getThrowables, indexOfThrowable, indexOfThrowable, printPartialStackTrace, printStackTrace, printStackTrace, printStackTrace

Constructor Details

NonUniqueResultException

public NonUniqueResultException(int resultCount)