Class InvalidParameterTypeException

All Implemented Interfaces:
Serializable

public class InvalidParameterTypeException extends IllegalStateException
Thrown by ParameterValue getter methods when a value can not be casted to the requested type. For example this exception is thrown when ParameterValue.doubleValue() is invoked but the value is not convertible to a double.
Note: this exception is of kind IllegalStateException instead of IllegalArgumentException because it is not caused by a bad argument. It is rather a consequence of a zero-argument method invoked in a context where it is not allowed.
This exception is typically thrown by the following methods:
Since:
1.0
See Also:
  • Constructor Details

    • InvalidParameterTypeException

      public InvalidParameterTypeException(String message, String parameterName)
      Creates an exception with the specified message and parameter name.
      Parameters:
      message - the detail message, saved for later retrieval by the Throwable.getMessage() method.
      parameterName - the parameter name.
    • InvalidParameterTypeException

      public InvalidParameterTypeException(String message, Throwable cause, String parameterName)
      Creates an exception with the specified message, cause and parameter name.
      Parameters:
      message - the detail message, saved for later retrieval by the Throwable.getMessage() method.
      cause - the cause, saved for later retrieval by the Throwable.getCause() method.
      parameterName - the parameter name.
      Since:
      3.1
  • Method Details

    • getParameterName

      public String getParameterName()
      Returns the parameter name.
      Returns:
      the parameter name.