Package org.opengis.parameter
Class InvalidParameterTypeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
org.opengis.parameter.InvalidParameterTypeException
- All Implemented Interfaces:
Serializable
Thrown by
ParameterValue
getter methods when a value can not be casted to the
requested type. For example this exception is thrown when ParameterValue.doubleValue()
is invoked but the value is not convertible to a double
.
- Since:
- 1.0
- Version:
- 3.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
The invalid parameter name.private static final long
Serial number for inter-operability with different versions. -
Constructor Summary
ConstructorsConstructorDescriptionInvalidParameterTypeException
(String message, String parameterName) Creates an exception with the specified message and parameter name. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerial number for inter-operability with different versions.- See Also:
-
parameterName
The invalid parameter name.
-
-
Constructor Details
-
InvalidParameterTypeException
Creates an exception with the specified message and parameter name.- Parameters:
message
- The detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.parameterName
- The parameter name.
-
-
Method Details
-
getParameterName
Returns the parameter name.- Returns:
- The parameter name.
-