Package org.moeaframework.analysis.store
Class DataStoreException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.moeaframework.core.FrameworkException
org.moeaframework.analysis.store.DataStoreException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BlobNotFoundException
An exception indicating a problem with a data store. Generally, this should be used for exceptions emitted from the
data store itself and for wrapping
IOException
as it typically represents an issue accessing the content in
the data store. However, other Java exceptions should be left unchanged.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDataStoreException
(String message) Constructs a new data store exception with the given message.DataStoreException
(String message, Throwable cause) Constructs a new data store exception with the given message. -
Method Summary
Modifier and TypeMethodDescriptionstatic DataStoreException
wrap
(IOException exception, Blob blob) Wraps an I/O exception into a unchecked data store exception.static DataStoreException
wrap
(IOException exception, Container container) Wraps an I/O exception into a unchecked data store exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DataStoreException
Constructs a new data store exception with the given message.- Parameters:
message
- the reason for the failurecause
- the underlying exception causing this failure
-
DataStoreException
Constructs a new data store exception with the given message.- Parameters:
message
- the reason for the failure
-
-
Method Details
-
wrap
Wraps an I/O exception into a unchecked data store exception.- Parameters:
exception
- the I/O exceptioncontainer
- the container that was being accessed- Returns:
- the unchecked data store exception
-
wrap
Wraps an I/O exception into a unchecked data store exception.- Parameters:
exception
- the I/O exceptionblob
- the blob that was being accessed- Returns:
- the unchecked data store exception
-