Class DatabaseException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.marcopaglio.booking.exception.DatabaseException
All Implemented Interfaces:
Serializable

public class DatabaseException extends RuntimeException
Thrown when there is a failure in querying the database.
See Also:
  • Constructor Details

    • DatabaseException

      public DatabaseException()
      Default constructor.
    • DatabaseException

      public DatabaseException(String errorMessage)
      Constructs a DatabaseException with the specified detail message.
      Parameters:
      errorMessage - specifies the error message.
    • DatabaseException

      public DatabaseException(String message, Throwable cause)
      Constructs a DatabaseException with the specified detail message and the cause.
      Parameters:
      message - specifies the error message.
      cause - the cause of the exception.