Package fr.gouv.vitam.common.exception
Class DatabaseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
fr.gouv.vitam.common.exception.VitamException
fr.gouv.vitam.common.exception.DatabaseException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DocumentAlreadyExistsException
Generic database exception throws by database services
- See Also:
-
Constructor Summary
ConstructorDescriptionDatabaseException
(String message) Basic constructor to indicate a simple error message without stacktraceDatabaseException
(String message, Throwable cause) Constructor used to encapsulate a previously thrown exception but with a custom meaningful messageDatabaseException
(Throwable cause) Constructor used to encapsulate a previously thrown exception. -
Method Summary
Methods inherited from class fr.gouv.vitam.common.exception.VitamException
getVitamError, setVitamError
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DatabaseException
Basic constructor to indicate a simple error message without stacktrace- Parameters:
message
- message to log
-
DatabaseException
Constructor used to encapsulate a previously thrown exception. A generic message is used.- Parameters:
cause
- the originating exception
-
DatabaseException
Constructor used to encapsulate a previously thrown exception but with a custom meaningful message- Parameters:
message
- the message to log throw threwcause
- the originating exception
-