Package org.apache.sis.storage
Class NoSuchDataException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.sis.storage.DataStoreException
org.apache.sis.storage.NoSuchDataException
- All Implemented Interfaces:
Serializable
,LocalizedException
- Direct Known Subclasses:
IllegalNameException
Thrown when requested data are not found in the data store.
It may be because no resource of the given name has been found,
or because data have been requested in a region of interest that
does not intersect the data region.
- Since:
- 1.1
- Version:
- 1.1
- 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.NoSuchDataException
(String message) Creates an exception with the specified details message.NoSuchDataException
(String message, Throwable cause) Creates an exception with the specified details message and cause.NoSuchDataException
(Throwable cause) Creates an exception with the specified cause and no details message.NoSuchDataException
(Locale locale, short key, Object... parameters) Creates a new exception which will format a localized message in the given locale. -
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
-
NoSuchDataException
public NoSuchDataException()Creates an exception with no cause and no details message. -
NoSuchDataException
Creates an exception with the specified details message.- Parameters:
message
- the detail message.
-
NoSuchDataException
Creates an exception with the specified cause and no details message.- Parameters:
cause
- the cause for this exception.
-
NoSuchDataException
Creates an exception with the specified details message and cause.- Parameters:
message
- the detail message.cause
- the cause for this exception.
-
NoSuchDataException
Creates a new exception which will format a localized message in the given locale.- Parameters:
locale
- the locale for the message to be returned byDataStoreException.getLocalizedMessage()
.key
- one ofResources.Keys
constants.parameters
- parameters to use for formatting the messages.
-