Class InvalidParameterException

All Implemented Interfaces:
Serializable

public class InvalidParameterException extends DeltaXMLException

Thrown to indicate that a parameter or its value is invalid. For example, the parameter dose not exist or its value is not in the expected range.

Since:
4.0
See Also:
  • Constructor Details

    • InvalidParameterException

      public InvalidParameterException(String message, String parameterName, Object parameterValue)
      Creates a new InvalidParameterException.
      Parameters:
      message - The exception message String
      parameterName - the parameter which is at fault
      parameterValue - the value of the parameter
    • InvalidParameterException

      public InvalidParameterException(String message, Throwable t, String parameterName, Object parameterValue)
      Creates a new InvalidParameterException.
      Parameters:
      message - the Exception message String
      t - a nested Throwable that caused this Exception
      parameterName - the name of the parameter which is at fault
      parameterValue - the value of the parameter
  • Method Details

    • getParameterName

      public String getParameterName()
      Provides the name of the parameter that was causing the problem.
      Returns:
      the name of the parameter that was to be set
    • getParameterValue

      public Object getParameterValue()
      Provides the name of the parameter that was causing the problem.
      Returns:
      the name of the parameter that was to be set