java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.data.exceptions.DataException
jakarta.data.exceptions.EmptyResultException
- All Implemented Interfaces:
Serializable
Data access exception thrown when a result was expected to have at least one row (or element)
but zero rows (or elements) were actually returned.
- See Also:
-
Constructor Summary
ConstructorDescriptionEmptyResultException
(String message) Constructs a new EmptyResultException exception with the specified detail message.EmptyResultException
(String message, Throwable cause) Constructs a new EmptyResultException exception with the specified detail message.EmptyResultException
(Throwable cause) Constructs a new EmptyResultException exception with the specified 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
-
EmptyResultException
Constructs a new EmptyResultException exception with the specified detail message.- Parameters:
message
- the detail message.
-
EmptyResultException
Constructs a new EmptyResultException exception with the specified detail message.- Parameters:
message
- the detail message.cause
- another exception or error that caused this exception. Null indicates that no other cause is specified.
-
EmptyResultException
Constructs a new EmptyResultException exception with the specified cause.- Parameters:
cause
- the cause.
-