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:
java.io.Serializable
public class InvalidParameterTypeException extends java.lang.IllegalStateException
Thrown byParameterValue
getter methods when a value can not be casted to the requested type. For example this exception is thrown whenParameterValue.doubleValue()
is invoked but the value is not convertible to adouble
.- Since:
- 1.0
- Version:
- 3.0
- See Also:
ParameterValue.intValue()
,ParameterValue.doubleValue()
,ParameterValue.booleanValue()
,ParameterValue.stringValue()
,ParameterValue.valueFile()
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
parameterName
The invalid parameter name.private static long
serialVersionUID
Serial number for inter-operability with different versions.
-
Constructor Summary
Constructors Constructor Description InvalidParameterTypeException(java.lang.String message, java.lang.String parameterName)
Creates an exception with the specified message and parameter name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getParameterName()
Returns the parameter name.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Serial number for inter-operability with different versions.- See Also:
- Constant Field Values
-
parameterName
private final java.lang.String parameterName
The invalid parameter name.
-
-
Constructor Detail
-
InvalidParameterTypeException
public InvalidParameterTypeException(java.lang.String message, java.lang.String parameterName)
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.
-
-