| |
|
| java.lang.Object java.lang.Throwable java.lang.Exception com.opensymphony.workflow.WorkflowException com.opensymphony.workflow.InvalidInputException
InvalidInputException | public class InvalidInputException extends WorkflowException (Code) | | Exception to indicate the user input is invalid. Handles both general errors and errors specific to an input.
author: Patrick Lightbody version: $Revision: 1.2 $ |
InvalidInputException | public InvalidInputException()(Code) | | |
InvalidInputException | public InvalidInputException(Object o)(Code) | | Creates a new exception using the supplied Object
as a generic base. If the object is an instance of
this exception, all properties are copied to this
exception. If the object is an instance of Map or
String[], an errorName->errorMessage mapping will
be attempted to be extracted. If the object is
something else, it's toString() method will be
called and added as a single generic error.
Parameters: o - the object |
InvalidInputException | public InvalidInputException(String error)(Code) | | Creates a new exception with an associated generic error.
Parameters: error - a generic error message |
InvalidInputException | public InvalidInputException(String name, String error)(Code) | | Creates a new exception with an error specific to an input.
Parameters: name - the input name that contains the error Parameters: error - an error about the given name |
addError | public void addError(String error)(Code) | | Adds a generic error.
Parameters: error - the generic error message |
addError | public void addError(String name, String error)(Code) | | Adds an input-specific error.
Parameters: name - the name of the input Parameters: error - the error message |
getErrors | public Map getErrors()(Code) | | Returns a map (String->String) of the input-specific errors.
a map (String->String) of the input-specific errors |
getGenericErrors | public List getGenericErrors()(Code) | | Returns a list (String) of generic errors.
A list (String) of generic errors |
|
|
|