Class BusinessError
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
- All Implemented Interfaces:
Serializable
Abstract base class for business errors that can be thrown from user code (delegates, expressions, scripts)
and are caught by the engine's error handling mechanisms (BPMN boundary error events, CMMN fault sentries).
This is distinct from technical errors (
FlowableException and its other subclasses) which indicate
programming errors or infrastructure failures. Business errors represent expected exceptional conditions
in the business process/case logic.
Subclasses: BpmnError (BPMN engine) and CmmnFault (CMMN engine).- Author:
- Joram Barrez
- See Also:
-
Field Summary
FieldsFields inherited from class FlowableException
isLogged, reduceLogLevel -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBusinessError(String errorCode) protectedBusinessError(String errorCode, String message) protectedBusinessError(String errorCode, String message, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddAdditionalData(String name, Object value) voidsetAdditionalDataContainer(VariableContainer additionalDataContainer) protected voidsetErrorCode(String errorCode) Methods 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
-
Field Details
-
errorCode
-
additionalDataContainer
-
-
Constructor Details
-
BusinessError
-
BusinessError
-
BusinessError
-
-
Method Details
-
setErrorCode
-
getErrorCode
-
getAdditionalDataContainer
-
setAdditionalDataContainer
-
addAdditionalData
-