Class BpmnError

  • All Implemented Interfaces:
    Serializable

    public class BpmnError
    extends org.flowable.common.engine.api.FlowableException
    Special exception that can be used to throw a BPMN Error from JavaDelegates and expressions. This should only be used for business faults, which shall be handled by a Boundary Error Event or Error Event Sub-Process modeled in the process definition. Technical errors should be represented by other exception types. This class represents an actual instance of a BPMN Error, whereas Error represents an Error definition.
    Author:
    Tijs Rademakers
    See Also:
    Serialized Form
    • Constructor Detail

      • BpmnError

        public BpmnError​(String errorCode)
      • BpmnError

        public BpmnError​(String errorCode,
                         String message)
    • Method Detail

      • setErrorCode

        protected void setErrorCode​(String errorCode)
      • getErrorCode

        public String getErrorCode()