public class InvalidParameterTypeException extends IllegalStateException
ParameterValue.doubleValue(javax.measure.Unit<?>)
is invoked but the value is not convertible to a double
.
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.
ParameterValue.intValue()
,
ParameterValue.doubleValue(javax.measure.Unit<?>)
,
Serialized FormConstructor and Description |
---|
InvalidParameterTypeException(String message,
String parameterName)
Creates an exception with the specified message and parameter name.
|
Modifier and Type | Method and Description |
---|---|
String |
getParameterName()
Returns the parameter name.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public InvalidParameterTypeException(String message, String parameterName)
message
- The detail message. The detail message is saved for later retrieval by the
Throwable.getMessage()
method.parameterName
- The parameter name.public String getParameterName()
Copyright © 1996–2019 Geotools. All rights reserved.