Object
Throwable
Exception
RuntimeException
IllegalStateException
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().
Note: This exception is of kindIllegalStateExceptioninstead ofIllegalArgumentExceptionbecause it is not caused by a bad argument. It is rather a consequence of anParameterValueGroupbeing "full".
- Since:
- 2.0
- See Also:
- Departure from OGC/ISO abstract specification:
Addition of element not in the ISO/OGC specification
This exception is not part of the OGC specification.
-
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 Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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.
-