Class InvalidParameterCardinalityException

Object
Throwable
Exception
RuntimeException
IllegalStateException
InvalidParameterCardinalityException
All Implemented Interfaces:
Serializable

public class InvalidParameterCardinalityException extends IllegalStateException
Thrown by Parameter­Value­Group if adding or removing a parameter value would result in more or less parameters than the expected range. The [minimummaximum] range is defined by the Parameter­Descriptor­Group instance associated with the Parameter­Value­Group.

This exception may be thrown directly by the Parameter­Value­Group​.add­Group(String) method, or indirectly during the add or remove operations on the list returned by Parameter­Value­Group​.values().

Since:
2.0
See Also:
  • Constructor Details

    • InvalidParameterCardinalityException

      public InvalidParameterCardinalityException(String message, String parameterName)
      Creates an exception with the specified message and parameter name.
      Parameters:
      message - The detail message. The detail message is saved for later retrieval by the Throwable​.get­Message() method.
      parameter­Name - The name of the parameter with invalid cardinality.
  • Method Details

    • getParameterName

      public String getParameterName()
      Returns the name of the parameter with invalid cardinality.
      Returns:
      The name of the parameter with invalid cardinality.