java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.helidon.data.DataException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
EntityExistsException
,EntityNotFoundException
,NonUniqueResultException
,NoResultException
,OptimisticLockException
A
RuntimeException
that indicates an operation on a data repository has failed.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDataException
(String message) Creates a newDataException
with the supplied detail message.DataException
(String message, Throwable cause) Creates a newDataException
with the supplied 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
-
DataException
Creates a newDataException
with the supplied detail message.- Parameters:
message
- descriptive message, shall not benull
- Throws:
NullPointerException
- whenmessage
isnull
-
DataException
Creates a newDataException
with the supplied detail message and cause.- Parameters:
message
- descriptive message, shall not benull
cause
- original throwable causing this exception, shall not benull
- Throws:
NullPointerException
- whenmessage
orcause
isnull
-