Class BpmnError

  • All Implemented Interfaces:

    public class BpmnError
    extends ProcessEngineException
    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.
    Falko Menge
    See Also:
    Serialized Form
    • Constructor Summary

      Constructor Description
      BpmnError​(java.lang.String errorCode)  
      BpmnError​(java.lang.String errorCode, java.lang.String message)  
      BpmnError​(java.lang.String errorCode, java.lang.String message, java.lang.Throwable cause)  
      BpmnError​(java.lang.String errorCode, java.lang.Throwable cause)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getErrorCode()  
      java.lang.String getMessage()  
      protected void setErrorCode​(java.lang.String errorCode)  
      protected void setMessage​(java.lang.String errorMessage)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • BpmnError

        public BpmnError​(java.lang.String errorCode)
      • BpmnError

        public BpmnError​(java.lang.String errorCode,
                         java.lang.String message)
      • BpmnError

        public BpmnError​(java.lang.String errorCode,
                         java.lang.String message,
                         java.lang.Throwable cause)
      • BpmnError

        public BpmnError​(java.lang.String errorCode,
                         java.lang.Throwable cause)
    • Method Detail

      • setErrorCode

        protected void setErrorCode​(java.lang.String errorCode)
      • getErrorCode

        public java.lang.String getErrorCode()
      • toString

        public java.lang.String toString()
        toString in class java.lang.Throwable
      • setMessage

        protected void setMessage​(java.lang.String errorMessage)
      • getMessage

        public java.lang.String getMessage()
        getMessage in class java.lang.Throwable