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.
Since:
1.0
Version:
3.0
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serial number for inter-operability with different versions.
      See Also:
    • parameterName

      private final String parameterName
      The invalid parameter name.
  • Constructor Details

    • InvalidParameterTypeException

      public InvalidParameterTypeException(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.getMessage() method.
      parameterName - The parameter name.
  • Method Details

    • getParameterName

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