Package org.opengis.parameter
Class InvalidParameterCardinalityException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
org.opengis.parameter.InvalidParameterCardinalityException
- All Implemented Interfaces:
Serializable
Thrown by
ParameterValueGroup if adding or removing a parameter value would result in more or less parameters than the expected range. The
[minimum …
maximum] range is defined by
the ParameterDescriptorGroup instance associated with the ParameterValueGroup.
This exception may be thrown directly by the ParameterValueGroup.addGroup(String)
method, or indirectly during the add or remove
operations on the list returned by ParameterValueGroup.values().
- Since:
- 2.0
- Version:
- 3.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe name of the parameter with invalid cardinality.private static final longSerial number for inter-operability with different versions. -
Constructor Summary
ConstructorsConstructorDescriptionInvalidParameterCardinalityException(String message, String parameterName) Creates an exception with the specified message and parameter name. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the parameter with invalid cardinality.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 inter-operability with different versions.- See Also:
-
parameterName
The name of the parameter with invalid cardinality.
-
-
Constructor Details
-
InvalidParameterCardinalityException
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 with invalid cardinality.
-
-
Method Details
-
getParameterName
Returns the name of the parameter with invalid cardinality.- Returns:
- The name of the parameter with invalid cardinality.
-