Package org.apache.sis.storage
Class IllegalFeatureTypeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.sis.storage.DataStoreException
org.apache.sis.storage.IllegalFeatureTypeException
- All Implemented Interfaces:
Serializable
,LocalizedException
Thrown when a store cannot write the given feature because its type is not one of the supported types.
The
FeatureType
is given by Feature.getType()
,
and the type expected by the data store is given by FeatureSet.getType()
. Those two values must
match, except when the type of the feature set is updated.- Since:
- 0.8
- Version:
- 0.8
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
For cross-version compatibility. -
Constructor Summary
ConstructorsConstructorDescriptionIllegalFeatureTypeException
(String message) Creates an exception with the specified details message.IllegalFeatureTypeException
(String message, Throwable cause) Creates an exception with the specified details message and cause.Creates an exception with the specified cause and no details message.IllegalFeatureTypeException
(Locale locale, String format, org.opengis.util.GenericName dataType) Creates an exception with a default 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
-
IllegalFeatureTypeException
Creates an exception with the specified details message.- Parameters:
message
- the detail message.
-
IllegalFeatureTypeException
Creates an exception with the specified cause and no details message.- Parameters:
cause
- the cause for this exception.
-
IllegalFeatureTypeException
Creates an exception with the specified details message and cause.- Parameters:
message
- the detail message.cause
- the cause for this exception.
-
IllegalFeatureTypeException
public IllegalFeatureTypeException(Locale locale, String format, org.opengis.util.GenericName dataType) Creates an exception with a default message in the given locale.- Parameters:
locale
- the locale for the message, ornull
for the default locale.format
- short name of the format that do not accept the given feature type.dataType
- name of the feature type that cannot be accepted by the data store.
-