public class ForwardOnlyStorageException extends DataStoreException
This exception typically does not depend on the DataStore implementation, but rather on the
StorageConnector value given to the data store.
ReadOnlyStorageException,
Serialized FormDefined in the sis-storage module
| Constructor and Description |
|---|
ForwardOnlyStorageException()
Creates an exception with no cause and no details message.
|
ForwardOnlyStorageException(Locale locale,
String filename,
OpenOption... options)
Creates a localized exception with a default message saying that the stream is read-once or write-once.
|
ForwardOnlyStorageException(String message)
Creates an exception with the specified details message.
|
ForwardOnlyStorageException(String message,
Throwable cause)
Creates an exception with the specified details message and cause.
|
getInternationalMessage, getLocalizedMessage, getMessage, initCauseaddSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ForwardOnlyStorageException()
public ForwardOnlyStorageException(String message)
message - the detail message.public ForwardOnlyStorageException(String message, Throwable cause)
message - the detail message in the default locale.cause - the cause for this exception.public ForwardOnlyStorageException(Locale locale, String filename, OpenOption... options)
locale - the locale of the message to be returned by DataStoreException.getLocalizedMessage(), or null.filename - name of the file or data store where the error occurred.options - the option used for opening the file, or null or empty if unknown.
This method looks in particular for StandardOpenOption.READ and
WRITE options for inferring if the data store was used as a reader or as a writer.Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.