Object
Throwable
Exception
RuntimeException
IllegalArgumentException
InvalidParameterValueException
- All Implemented Interfaces:
Serializable
@UML(identifier="GC_InvalidParameterValue",
specification=OGC_01004)
public class InvalidParameterValueException
extends IllegalArgumentException
Thrown by
ParameterValue
setter methods when they are given an invalid value.
The value may be invalid because it is not assignable to the Java
value class, not a member of the
valid values set, or any other reason.
This exception is typically thrown by the following methods:
ParameterValue.setValue(int)
ParameterValue.setValue(double)
ParameterValue.setValue(Object)
- Any other setter method.
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorDescriptionInvalidParameterValueException
(String message, String parameterName, double value) Creates an exception with the specified invalid value as a floating point.InvalidParameterValueException
(String message, String parameterName, int value) Creates an exception with the specified invalid value as an integer.InvalidParameterValueException
(String message, String parameterName, Object value) Creates an exception with the specified invalid value.InvalidParameterValueException
(String message, Throwable cause, String parameterName, Object value) Creates an exception with the specified message, cause and invalid value. -
Method Summary
Modifier and TypeMethodDescriptionReturns the parameter name.getValue()
Returns the invalid parameter value.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidParameterValueException
Creates an exception with the specified invalid value.- Parameters:
message
- the detail message, saved for later retrieval by theThrowable.getMessage()
method.parameterName
- the parameter name.value
- the invalid parameter value.
-
InvalidParameterValueException
Creates an exception with the specified invalid value as a floating point.- Parameters:
message
- the detail message, saved for later retrieval by theThrowable.getMessage()
method.parameterName
- the parameter name.value
- the invalid parameter value.
-
InvalidParameterValueException
Creates an exception with the specified invalid value as an integer.- Parameters:
message
- the detail message, saved for later retrieval by theThrowable.getMessage()
method.parameterName
- the parameter name.value
- the invalid parameter value.
-
InvalidParameterValueException
public InvalidParameterValueException(String message, Throwable cause, String parameterName, Object value) Creates an exception with the specified message, cause and invalid value.- Parameters:
message
- the detail message, saved for later retrieval by theThrowable.getMessage()
method.cause
- the cause, saved for later retrieval by theThrowable.getCause()
method.parameterName
- the parameter name.value
- the invalid parameter value.- Since:
- 3.1
-
-
Method Details
-
getParameterName
-
getValue
-