Package org.apache.sis.feature
Class FeatureOperationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
org.apache.sis.feature.FeatureOperationException
- All Implemented Interfaces:
Serializable
,LocalizedException
Thrown when a property value cannot be computed.
This exception may occur during a call to
AbstractAttribute.getValue()
on an attribute
instance which computes its value dynamically instead of returning a stored value.
It may be for example the attributes produced by FeatureOperations
.- Since:
- 1.1
- Version:
- 1.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.opengis.util.InternationalString
A description of the computation error.private static final long
For cross-version compatibility. -
Constructor Summary
ConstructorsConstructorDescriptionFeatureOperationException
(org.opengis.util.InternationalString message) Creates a new exception with the given explanation message.FeatureOperationException
(org.opengis.util.InternationalString message, Exception cause) Creates a new exception with the given explanation message and cause. -
Method Summary
Modifier and TypeMethodDescriptionorg.opengis.util.InternationalString
Returns the message in various locales.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.sis.util.LocalizedException
getLocalizedMessage, getMessage
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
message
private final org.opengis.util.InternationalString messageA description of the computation error.
-
-
Constructor Details
-
FeatureOperationException
FeatureOperationException(org.opengis.util.InternationalString message) Creates a new exception with the given explanation message.- Parameters:
message
- a description of the computation error.
-
FeatureOperationException
FeatureOperationException(org.opengis.util.InternationalString message, Exception cause) Creates a new exception with the given explanation message and cause.- Parameters:
message
- a description of the computation error.cause
- the cause of the error.
-
-
Method Details
-
getInternationalMessage
public org.opengis.util.InternationalString getInternationalMessage()Returns the message in various locales.- Specified by:
getInternationalMessage
in interfaceLocalizedException
- Returns:
- the exception message.
-