Package org.apache.sis.storage
Class ConcurrentWriteException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.sis.storage.DataStoreException
org.apache.sis.storage.ConcurrentWriteException
- All Implemented Interfaces:
Serializable
,LocalizedException
Thrown when an operation cannot be performed while a write operation is in progress.
This exception is thrown for example if a read operation is attempted on a data store
that does not support concurrent read and write operations.
- Since:
- 0.8
- Version:
- 0.8
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
For cross-version compatibility. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an exception with no cause and no details message.ConcurrentWriteException
(String message) Creates an exception with the specified details message.ConcurrentWriteException
(String message, Throwable cause) Creates an exception with the specified details message and cause.ConcurrentWriteException
(Locale locale, String filename) Creates a localized exception for an operation that cannot be executed while a write operation is in progress. -
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
-
ConcurrentWriteException
public ConcurrentWriteException()Creates an exception with no cause and no details message. -
ConcurrentWriteException
Creates an exception with the specified details message.- Parameters:
message
- the detail message.
-
ConcurrentWriteException
Creates an exception with the specified details message and cause.- Parameters:
message
- the detail message.cause
- the cause for this exception.
-
ConcurrentWriteException
Creates a localized exception for an operation that cannot be executed while a write operation is in progress. 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
.filename
- name of the file or data store where a write operation is in progress.
-