|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.opensymphony.workflow.WorkflowException
com.opensymphony.workflow.InvalidInputException
public class InvalidInputException
Exception to indicate the user input is invalid. Handles both general errors and errors specific to an input.
| Constructor Summary | |
|---|---|
InvalidInputException()
|
|
InvalidInputException(Object o)
Creates a new exception using the supplied Object as a generic base. |
|
InvalidInputException(String error)
Creates a new exception with an associated generic error. |
|
InvalidInputException(String name,
String error)
Creates a new exception with an error specific to an input. |
|
| Method Summary | |
|---|---|
void |
addError(String error)
Adds a generic error. |
void |
addError(String name,
String error)
Adds an input-specific error. |
Map |
getErrors()
Returns a map (String->String) of the input-specific errors. |
List |
getGenericErrors()
Returns a list (String) of generic errors. |
String |
toString()
|
| Methods inherited from class com.opensymphony.workflow.WorkflowException |
|---|
getCause, getMessage, getRootCause, printStackTrace, printStackTrace, printStackTrace |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InvalidInputException()
public InvalidInputException(Object o)
o - the objectpublic InvalidInputException(String error)
error - a generic error message
public InvalidInputException(String name,
String error)
name - the input name that contains the errorerror - an error about the given name| Method Detail |
|---|
public Map getErrors()
public List getGenericErrors()
public void addError(String error)
error - the generic error message
public void addError(String name,
String error)
name - the name of the inputerror - the error messagepublic String toString()
toString in class Throwable
|
OpenSymphony Workflow Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||