Class CmmnFault
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.flowable.common.engine.api.FlowableException
org.flowable.common.engine.api.delegate.BusinessError
org.flowable.cmmn.engine.delegate.CmmnFault
- All Implemented Interfaces:
Serializable
Special exception that can be used to throw a CMMN Fault from
PlanItemJavaDelegates, expressions, and scripts.
This should only be used for business faults, which shall be handled by sentries with standardEvent="fault".
Technical errors should be represented by other exception types.
This is the CMMN equivalent of BPMN's BpmnError. When thrown during plan item execution,
it triggers the fault transition (Active → Failed) instead of propagating as an exception.- Author:
- Joram Barrez
- See Also:
-
Field Summary
Fields inherited from class BusinessError
additionalDataContainer, errorCodeFields inherited from class FlowableException
isLogged, reduceLogLevel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalData(String name, Object value) Returns the fault code.Methods inherited from class BusinessError
getAdditionalDataContainer, getErrorCode, setAdditionalDataContainer, setErrorCodeMethods inherited from class FlowableException
isLogged, isReduceLogLevel, setLogged, setReduceLogLevelMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CmmnFault
-
CmmnFault
-
-
Method Details
-
getFaultCode
Returns the fault code. This is an alias forBusinessError.getErrorCode(). -
addAdditionalData
- Specified by:
addAdditionalDatain classBusinessError
-