java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
org.litebridgedb.orm.exception.NonUniqueResultException
- All Implemented Interfaces:
Serializable
Thrown to indicate that a query returned more than one result when exactly one was expected.
This exception is typically used in scenarios where unique results are required, such as in methods that retrieve a single entity, but the result set contains multiple records.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNonUniqueResultException(String message, Throwable cause) Constructs aNonUniqueResultExceptionwith the specified detail message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NonUniqueResultException
Constructs aNonUniqueResultExceptionwith the specified detail message and cause.- Parameters:
message- the detail message explaining the reason for the exceptioncause- the underlying cause of the exception, which may benull
-