Package jakarta.data.exceptions
Class DataConnectionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.data.exceptions.DataException
jakarta.data.exceptions.DataConnectionException
- All Implemented Interfaces:
Serializable
Indicates a connection-related failure that might be intermittent in nature.
The operation might succeed if reattempted by the application.
If the data access resource is enlisted in a transaction,
the application must ensure that the transaction is rolled back before retrying the operation under a new transaction.
- See Also:
-
Constructor Summary
ConstructorDescriptionDataConnectionException
(String message) Constructs a new DataConnectionException exception with the specified detail message.DataConnectionException
(String message, Throwable cause) Constructs a new DataConnectionException exception with the specified detail message.DataConnectionException
(Throwable cause) Constructs a new DataConnectionException 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
-
DataConnectionException
Constructs a new DataConnectionException exception with the specified detail message.- Parameters:
message
- the detail message.
-
DataConnectionException
Constructs a new DataConnectionException 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.
-
DataConnectionException
Constructs a new DataConnectionException exception with the specified cause.- Parameters:
cause
- the cause.
-