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 newDataExceptionwith the supplied detail message.DataException(String message, Throwable cause) Creates a newDataExceptionwith 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 newDataExceptionwith the supplied detail message.- Parameters:
message- descriptive message, shall not benull- Throws:
NullPointerException- whenmessageisnull
-
DataException
Creates a newDataExceptionwith the supplied detail message and cause.- Parameters:
message- descriptive message, shall not benullcause- original throwable causing this exception, shall not benull- Throws:
NullPointerException- whenmessageorcauseisnull
-