Class ErrorHandler

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

public class ErrorHandler extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addErrorMessage(org.imixs.workflow.exceptions.WorkflowException pe)
    This helper method adds a error message to the faces context, based on the data in a WorkflowException.
    static void
    handleModelException(org.imixs.workflow.exceptions.ModelException me)
    The Method expects a ModelException and adds the corresponding Faces Error Message into the FacesContext.
    static void
    handlePluginException(org.imixs.workflow.exceptions.PluginException pe)
    The Method expects a PluginException and adds the corresponding Faces Error Message into the FacesContext.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ErrorHandler

      public ErrorHandler()
  • Method Details

    • handlePluginException

      public static void handlePluginException(org.imixs.workflow.exceptions.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(org.imixs.workflow.exceptions.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(org.imixs.workflow.exceptions.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 -