|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
net.sf.oswf.exceptions.WorkflowException
net.sf.oswf.exceptions.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(java.lang.Object o)
Creates a new exception using the supplied Object as a generic base. |
|
InvalidInputException(java.lang.String error)
Creates a new exception with an associated generic error. |
|
InvalidInputException(java.lang.String name,
java.lang.String error)
Creates a new exception with an error specific to an input. |
Method Summary | |
---|---|
void |
addError(java.lang.String error)
Adds a generic error. |
void |
addError(java.lang.String name,
java.lang.String error)
Adds an input-specific error. |
java.util.Map |
getErrors()
Returns a map (String->String) of the input-specific errors. |
java.util.List<java.lang.String> |
getGenericErrors()
Returns a list (String) of generic errors. |
java.lang.String |
toString()
|
Methods inherited from class net.sf.oswf.exceptions.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(java.lang.Object o)
o
- the objectpublic InvalidInputException(java.lang.String error)
error
- a generic error messagepublic InvalidInputException(java.lang.String name, java.lang.String error)
name
- the input name that contains the errorerror
- an error about the given nameMethod Detail |
---|
public java.util.Map getErrors()
public java.util.List<java.lang.String> getGenericErrors()
public void addError(java.lang.String error)
error
- the generic error messagepublic void addError(java.lang.String name, java.lang.String error)
name
- the name of the inputerror
- the error messagepublic java.lang.String toString()
toString
in class java.lang.Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |