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 fromJavaDelegates 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, whereasErrorrepresents an Error definition.- Author:
- Falko Menge
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.engine.ProcessEngineException
code
-
-
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.StringgetErrorCode()java.lang.StringgetMessage()protected voidsetErrorCode(java.lang.String errorCode)protected voidsetMessage(java.lang.String errorMessage)java.lang.StringtoString()-
Methods inherited from class org.camunda.bpm.engine.ProcessEngineException
getCode, setCode
-
-
-
-
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:
toStringin classjava.lang.Throwable
-
setMessage
protected void setMessage(java.lang.String errorMessage)
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
-