Class StorageDriverException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- fr.gouv.vitam.storage.driver.exception.StorageDriverException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
StorageDriverConflictException
,StorageDriverNotFoundException
,StorageDriverPreconditionFailedException
,StorageDriverServiceUnavailableException
public class StorageDriverException extends java.lang.Exception
Exceptions to be thrown by the storage drivers Note: it is intended to NOT extends VitamException in order to not have a dependency to common-public in this module- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StorageDriverException(java.lang.String driverInfos, boolean shouldRetry, java.lang.Throwable cause)
Constructor with an original exception and additional info about the driverStorageDriverException(java.lang.String driverInfos, java.lang.String message, boolean shouldRetry)
Constructor with a message and additional info about the driverStorageDriverException(java.lang.String driverInfos, java.lang.String message, boolean shouldRetry, java.lang.Throwable cause)
Constructor with a message and an original exception and additional info about the driver
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDriverInfo()
Get the driverInfoboolean
isShouldRetry()
-
-
-
Constructor Detail
-
StorageDriverException
public StorageDriverException(java.lang.String driverInfos, java.lang.String message, boolean shouldRetry)
Constructor with a message and additional info about the driver- Parameters:
driverInfos
- information about the driver (id, name, version...)message
- a message to add
-
StorageDriverException
public StorageDriverException(java.lang.String driverInfos, java.lang.String message, boolean shouldRetry, java.lang.Throwable cause)
Constructor with a message and an original exception and additional info about the driver- Parameters:
driverInfos
- information about the driver (id, name, version...)message
- the exception messagecause
- the original exception
-
StorageDriverException
public StorageDriverException(java.lang.String driverInfos, boolean shouldRetry, java.lang.Throwable cause)
Constructor with an original exception and additional info about the driver- Parameters:
driverInfos
- information about the driver (id, name, version...)cause
- the original exception
-
-