org.camunda.bpm.engine.delegate
Class BpmnError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.camunda.bpm.engine.ProcessEngineException
                  extended by org.camunda.bpm.engine.delegate.BpmnError
All Implemented Interfaces:
Serializable

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.

Author:
Falko Menge
See Also:
Serialized Form

Constructor Summary
BpmnError(String errorCode)
           
BpmnError(String errorCode, String message)
           
 
Method Summary
 String getErrorCode()
           
 String getMessage()
           
protected  void setErrorCode(String errorCode)
           
protected  void setMessage(String errorMessage)
           
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, 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(String errorCode)

BpmnError

public BpmnError(String errorCode,
                 String message)
Method Detail

setErrorCode

protected void setErrorCode(String errorCode)

getErrorCode

public String getErrorCode()

toString

public String toString()
Overrides:
toString in class Throwable

setMessage

protected void setMessage(String errorMessage)

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable


Copyright © 2016 camunda services GmbH. All rights reserved.