Package com.sanctionco.thunder.dao
Class DatabaseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sanctionco.thunder.dao.DatabaseException
- All Implemented Interfaces:
Serializable
Represents an exception that occurred during a database operation. Provides constructors
that use
DatabaseError
in order to provide more detail about the database failure.- See Also:
- Serialized Form
-
Constructor Summary
ConstructorDescriptionDatabaseException(DatabaseError error)
Constructs a newDatabaseException
with the given database error.DatabaseException(String message, DatabaseError error)
Constructs a newDatabaseException
with the given message and database error.DatabaseException(String message, Throwable cause, DatabaseError error)
Constructs a newDatabaseException
with the given message, cause, and database error.DatabaseException(Throwable cause, DatabaseError error)
Constructs a newDatabaseException
with the given cause and database error. -
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
Constructs a newDatabaseException
with the given database error.- Parameters:
error
- the type of error that occurred
-
DatabaseException
Constructs a newDatabaseException
with the given message and database error.- Parameters:
message
- the exception messageerror
- the type of error that occurred
-
DatabaseException
Constructs a newDatabaseException
with the given message, cause, and database error.- Parameters:
message
- the exception messagecause
- the exception's causeerror
- the type of error that occurred
-
DatabaseException
Constructs a newDatabaseException
with the given cause and database error.- Parameters:
cause
- the exception's causeerror
- the type of error that occurred
-
-
Method Details
-
getErrorKind
-