public class UnsupportedStorageException extends IllegalOpenParameterException
DataStoreProvider
is found for a given storage object.
May also be thrown if a DataStore
is instantiated directly but the data store
can not handle the given input or output object.Defined in the sis-storage
module
Constructor and Description |
---|
UnsupportedStorageException()
Creates an exception with no cause and no details message.
|
UnsupportedStorageException(Locale locale,
String format,
Object storage,
OpenOption... options)
Creates a localized exception for an invalid input or output object given to a data store.
|
UnsupportedStorageException(String message)
Creates an exception with the specified details message.
|
UnsupportedStorageException(String message,
Throwable cause)
Creates an exception with the specified details message and cause.
|
UnsupportedStorageException(Throwable cause)
Creates an exception with the specified cause and no details message.
|
getInternationalMessage, getLocalizedMessage, getMessage, initCause
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public UnsupportedStorageException()
public UnsupportedStorageException(String message)
message
- the detail message.public UnsupportedStorageException(Throwable cause)
cause
- the cause for this exception.public UnsupportedStorageException(String message, Throwable cause)
message
- the detail message.cause
- the cause for this exception.public UnsupportedStorageException(Locale locale, String format, Object storage, OpenOption... options)
locale
- the locale of the message to be returned by DataStoreException.getLocalizedMessage()
, or null
.format
- short name or abbreviation of the data format (e.g. "CSV", "GML", "WKT", etc).storage
- the invalid input or output object. This is typically StorageConnector.getStorage()
.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 to be used as a reader or as a writer.
Those options can be obtained by StorageConnector.getOption(OptionKey.OPEN_OPTIONS)
.Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.