Class StorageDriverException
java.lang.Object
java.lang.Throwable
java.lang.Exception
fr.gouv.vitam.storage.driver.exception.StorageDriverException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
StorageDriverConflictException
,StorageDriverNotFoundException
,StorageDriverPreconditionFailedException
,StorageDriverServerErrorException
,StorageDriverServiceUnavailableException
,StorageDriverUnavailableDataFromAsyncOfferException
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:
-
Constructor Summary
ConstructorDescriptionStorageDriverException
(String driverInfos, boolean shouldRetry, Throwable cause) Constructor with an original exception and additional info about the driverStorageDriverException
(String driverInfos, String message, boolean shouldRetry) Constructor with a message and additional info about the driverStorageDriverException
(String driverInfos, String message, boolean shouldRetry, Throwable cause) Constructor with a message and an original exception and additional info about the driver -
Method Summary
Modifier and TypeMethodDescriptionGet the driverInfoboolean
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
StorageDriverException
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(String driverInfos, String message, boolean shouldRetry, 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
Constructor with an original exception and additional info about the driver- Parameters:
driverInfos
- information about the driver (id, name, version...)cause
- the original exception
-
-
Method Details
-
getDriverInfo
Get the driverInfo- Returns:
- driverInfo
-
isShouldRetry
public boolean isShouldRetry()
-