Class TransactionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.marcopaglio.booking.exception.TransactionException
- All Implemented Interfaces:
Serializable
Thrown when a generic database transaction fails.
- See Also:
-
Constructor Summary
ConstructorDescriptionDefault constructor.TransactionException
(String errorMessage) Constructs aTransactionException
with the specified detail message.TransactionException
(String message, Throwable cause) Constructs aTransactionException
with the specified detail message and the 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
-
TransactionException
public TransactionException()Default constructor. -
TransactionException
Constructs aTransactionException
with the specified detail message.- Parameters:
errorMessage
- specifies the error message.
-
TransactionException
Constructs aTransactionException
with the specified detail message and the cause.- Parameters:
message
- specifies the error message.cause
- the cause of the exception.
-