Class UnsupportedStorageException

All Implemented Interfaces:
Serializable, Localized­Exception

public class UnsupportedStorageException extends IllegalOpenParameterException
Thrown when no Data­Store­Provider is found for a given storage object. May also be thrown if a Data­Store is instantiated directly but the data store cannot handle the given input or output object.
Since:
0.4
See Also:
  • Constructor Details

    • UnsupportedStorageException

      public UnsupportedStorageException()
      Creates an exception with no cause and no details message.
    • UnsupportedStorageException

      public UnsupportedStorageException(String message)
      Creates an exception with the specified details message.
      Parameters:
      message - the detail message.
    • UnsupportedStorageException

      public UnsupportedStorageException(Throwable cause)
      Creates an exception with the specified cause and no details message.
      Parameters:
      cause - the cause for this exception.
    • UnsupportedStorageException

      public UnsupportedStorageException(String message, Throwable cause)
      Creates an exception with the specified details message and cause.
      Parameters:
      message - the detail message.
      cause - the cause for this exception.
    • UnsupportedStorageException

      public 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. Arguments given to this constructor are hints for building an error message.
      Parameters:
      locale - the locale of the message to be returned by Data­Store­Exception​.get­Localized­Message(), 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 Storage­Connector​.get­Storage().
      options - the option used for opening the file, or null or empty if unknown. This method looks in particular for Standard­Open­Option​.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 Storage­Connector​.get­Option(Option­Key​.OPEN_OPTIONS).
      Since:
      0.8