Package org.imixs.workflow.faces.util
Class ErrorHandler
java.lang.Object
org.imixs.workflow.faces.util.ErrorHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
This helper method adds a error message to the faces context, based on the data in a WorkflowException.static void
The Method expects a ModelException and adds the corresponding Faces Error Message into the FacesContext.static void
The Method expects a PluginException and adds the corresponding Faces Error Message into the FacesContext.
-
Constructor Details
-
ErrorHandler
public ErrorHandler()
-
-
Method Details
-
handlePluginException
The Method expects a PluginException and adds the corresponding Faces Error Message into the FacesContext. If the PluginException was thrown from the RulePLugin then the method test this exception for ErrorParams and generate separate Faces Error Messages for each param. -
handleModelException
The Method expects a ModelException and adds the corresponding Faces Error Message into the FacesContext. In case of a model exception, the exception message will become part of the error message. ErrorParams are not supported by a ModelException. -
addErrorMessage
This helper method adds a error message to the faces context, based on the data in a WorkflowException. This kind of error message can be displayed in a page using:<h:messages globalOnly="true" />
If a PluginException or ValidationException contains an optional object array the message is parsed for params to be replaced Example:ERROR_MESSAGE=Value should not be greater than {0} or lower as {1}.
- Parameters:
pe
-
-