Package jakarta.data.exceptions
Class DataException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.data.exceptions.DataException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DataConnectionException
,EmptyResultException
,EntityExistsException
,MappingException
,NonUniqueResultException
,OptimisticLockingFailureException
Thrown by the data provider when a problem occurs.
- See Also:
-
Constructor Summary
ConstructorDescriptionDataException
(String message) Constructs a new DataException exception with the specified detail message.DataException
(String message, Throwable cause) Constructs a new DataException exception with the specified detail message and cause.DataException
(Throwable cause) Constructs a new DataException 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
-
DataException
Constructs a new DataException exception with the specified detail message.- Parameters:
message
- the detail message.
-
DataException
Constructs a new DataException exception with the specified detail message and cause.- Parameters:
message
- the detail message.cause
- the cause.
-
DataException
Constructs a new DataException exception with the specified cause.- Parameters:
cause
- the cause.
-