public class InvalidInputException extends WorkflowException
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
getCause, getMessage, getRootCause, printStackTrace, printStackTrace, printStackTrace
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace
public InvalidInputException()
public InvalidInputException(Object o)
o
- the objectpublic InvalidInputException(String error)
error
- a generic error messagepublic Map getErrors()
public List getGenericErrors()
public void addError(String error)
error
- the generic error messagepublic void addError(String name, String error)
name
- the name of the inputerror
- the error messageCopyright © 2021 catworkx GmbH. All rights reserved.