Package org.apache.sis.storage
Class DataStoreClosedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.sis.storage.DataStoreException
org.apache.sis.storage.DataStoreClosedException
- All Implemented Interfaces:
Serializable
,LocalizedException
Thrown when a data store is closed and can no more return data.
- Since:
- 0.8
- Version:
- 0.6
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
For cross-version compatibility. -
Constructor Summary
ConstructorsConstructorDescriptionDataStoreClosedException
(String message) Creates an exception with the specified details message.DataStoreClosedException
(String message, Throwable cause) Creates an exception with the specified details message and cause.DataStoreClosedException
(Locale locale, String format, OpenOption... options) Creates a localized exception for a reader or writer which has been closed. -
Method Summary
Methods inherited from class org.apache.sis.storage.DataStoreException
getInternationalMessage, getLocalizedMessage, getMessage, initCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
-
Constructor Details
-
DataStoreClosedException
Creates an exception with the specified details message.- Parameters:
message
- the detail message of the exception.
-
DataStoreClosedException
Creates an exception with the specified details message and cause.- Parameters:
message
- the detail message of the exception.cause
- the cause root for the exception.
-
DataStoreClosedException
Creates a localized exception for a reader or writer which has been closed. Arguments given to this constructor are hints for building an error message.- Parameters:
locale
- the locale of the message to be returned byDataStoreException.getLocalizedMessage()
, ornull
.format
- short name or abbreviation of the data format (e.g. "CSV", "GML", "WKT", etc).options
- the option used for opening the file, ornull
or empty if unknown. This method looks in particular forStandardOpenOption.READ
andWRITE
options for inferring if the data store was used as a reader or as a writer.- Since:
- 0.8
-