Package org.opengis.parameter
Class ParameterNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
org.opengis.parameter.ParameterNotFoundException
- All Implemented Interfaces:
Serializable
Thrown by
ParameterValueGroup
and ParameterDescriptorGroup
when a parameter is requested but not found in that group.- Since:
- 1.0
- Version:
- 3.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
The invalid parameter name.private static final long
Serial number for interoperability with different versions. -
Constructor Summary
ConstructorsConstructorDescriptionParameterNotFoundException
(String message, String parameterName) Creates an exception with the specified message and parameter name. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the parameter which was required but not found.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerial number for interoperability with different versions.- See Also:
-
parameterName
The invalid parameter name.
-
-
Constructor Details
-
ParameterNotFoundException
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 name of the parameter which was required but not found.
-
-
Method Details
-
getParameterName
Returns the name of the parameter which was required but not found.- Returns:
- The required parameter name.
-