com.meterware.httpunit.controls
Class IllegalParameterValueException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.meterware.httpunit.IllegalRequestParameterException
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
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 |
IllegalParameterValueException
public IllegalParameterValueException(java.lang.String parameterName,
java.lang.String badValue,
java.lang.String[] allowed)
- construct an IllegalParameterValueException
- Parameters:
parameterName
- - the name of the parameterbadValue
- - the bad value that is not allowedallowed
- - the list of allowed values
IllegalParameterValueException
public IllegalParameterValueException(java.lang.String parameterName,
java.util.List values,
java.lang.String[] allowed)
- Parameters:
parameterName
- values
- allowed
-
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.