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.IllegalStateExceptionThrown when a parameter can't be cast to the requested type. For example this exception is thrown whenParameterValue.doubleValue(Unit)is invoked but the value is not convertible to adouble.Note: This exception is of kind "illegal state" rather than "illegal argument" because it is not caused by a bad argument. It is rather a consequence of invoking the wrong zero-argument method.
- Since:
- GeoAPI 1.0
- See Also:
ParameterValue.intValue(),ParameterValue.doubleValue(Unit), Serialized Form
-
-
Constructor Summary
Constructors Constructor and 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 and Description java.lang.StringgetParameterName()Returns the 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.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG