Object
Throwable
Exception
RuntimeException
IllegalStateException
InvalidParameterTypeException
- All Implemented Interfaces:
Serializable
Thrown by
ParameterValue
getter methods when a value cannot 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
.
Note: This exception is of kindIllegalStateException
instead ofIllegalArgumentException
because it is not caused by a bad argument. It is rather a consequence of a zero-argument method invoked in a context where is it not allowed.
- Since:
- 1.0
- See Also:
- Departure from OGC/ISO abstract specification:
Addition of element not in the ISO/OGC specification
This exception is not part of the OGC specification.
-
Constructor Summary
ConstructorDescriptionInvalidParameterTypeException
(String message, String parameterName) Creates an exception with the specified message and parameter name. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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.
-