Class ErrorHandler

java.lang.Object
org.imixs.workflow.faces.util.ErrorHandler

public class ErrorHandler extends Object
  • Constructor Details

    • ErrorHandler

      public ErrorHandler()
  • Method Details

    • handlePluginException

      public static void handlePluginException(PluginException pe)
      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

      public static void handleModelException(ModelException me)
      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

      public static void addErrorMessage(WorkflowException pe)
      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 -