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