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.-
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. -
Method Summary
Modifier and TypeMethodDescriptionReturns the parameter name.getValue()
Returns the invalid parameter value.Methods inherited from class 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. The detail message is 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. The detail message is 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. The detail message is saved for later retrieval by theThrowable.getMessage()
method.parameterName
- The parameter name.value
- The invalid parameter value.
-
-
Method Details
-
getParameterName
Returns the parameter name.- Returns:
- The parameter name.
-
getValue
Returns the invalid parameter value.- Returns:
- The invalid parameter value.
-