Package org.camunda.bpm.engine.delegate
Class BpmnError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.camunda.bpm.engine.ProcessEngineException
-
- org.camunda.bpm.engine.delegate.BpmnError
-
- All Implemented Interfaces:
java.io.Serializable
public class BpmnError extends ProcessEngineException
Special exception that can be used to throw a BPMN Error fromJavaDelegate
s 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, whereasError
represents an Error definition.- Author:
- Falko Menge
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors 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()
-
-
-
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()
- Overrides:
toString
in classjava.lang.Throwable
-
setMessage
protected void setMessage(java.lang.String errorMessage)
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
-