com.meterware.httpunit.controls
Class IllegalParameterValueException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.meterware.httpunit.IllegalRequestParameterException
                  extended by com.meterware.httpunit.controls.IllegalParameterValueException
All Implemented Interfaces:
java.io.Serializable

public class IllegalParameterValueException
extends IllegalRequestParameterException

This exception is thrown on an attempt to set a parameter to a value not permitted to it by the form.

See Also:
Serialized Form

Constructor Summary
IllegalParameterValueException(java.lang.String parameterName, java.util.List values, java.lang.String[] allowed)
           
IllegalParameterValueException(java.lang.String parameterName, java.lang.String badValue, java.lang.String[] allowed)
          construct an IllegalParameterValueException
 
Method Summary
protected static java.lang.String getBadValue(java.util.List values)
          get the bad value from a list of Values
 java.lang.String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IllegalParameterValueException

public IllegalParameterValueException(java.lang.String parameterName,
                                      java.lang.String badValue,
                                      java.lang.String[] allowed)
construct an IllegalParameterValueException

Parameters:
parameterName - - the name of the parameter
badValue - - the bad value that is not allowed
allowed - - the list of allowed values

IllegalParameterValueException

public IllegalParameterValueException(java.lang.String parameterName,
                                      java.util.List values,
                                      java.lang.String[] allowed)
Parameters:
parameterName -
values -
allowed -
Method Detail

getBadValue

protected static java.lang.String getBadValue(java.util.List values)
get the bad value from a list of Values

Parameters:
values -
Returns:

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable


Copyright © 2011. All Rights Reserved.