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:
java.io.Serializable
- Direct Known Subclasses:
DocumentAlreadyExistsException
public class DatabaseException extends VitamException
Generic database exception throws by database services- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DatabaseException(java.lang.String message)
Basic constructor to indicate a simple error message without stacktraceDatabaseException(java.lang.String message, java.lang.Throwable cause)
Constructor used to encapsulate a previously thrown exception but with a custom meaningful messageDatabaseException(java.lang.Throwable cause)
Constructor used to encapsulate a previously thrown exception.
-
Method Summary
-
Methods inherited from class fr.gouv.vitam.common.exception.VitamException
getVitamError, setVitamError
-
-
-
-
Constructor Detail
-
DatabaseException
public DatabaseException(java.lang.String message)
Basic constructor to indicate a simple error message without stacktrace- Parameters:
message
- message to log
-
DatabaseException
public DatabaseException(java.lang.Throwable cause)
Constructor used to encapsulate a previously thrown exception. A generic message is used.- Parameters:
cause
- the originating exception
-
DatabaseException
public DatabaseException(java.lang.String message, java.lang.Throwable cause)
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
-
-