Interface Cause
- All Known Implementing Classes:
WorkflowError,WorkflowExecutionException
Contract describing the cause of a workflow or step failure.
- Since:
- 5.4.0
- Author:
- Stefan Dragisic
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanmessage()Message describing the cause, typicallyThrowable.getMessage().type()Fully-qualified class name of the originatingThrowable.
-
Method Details
-
type
String type()Fully-qualified class name of the originatingThrowable. -
message
String message()Message describing the cause, typicallyThrowable.getMessage(). -
isType
Returnstruewhentype()matches the fully-qualified name ofclazz. Use this instead ofinstanceofwhen branching on the originating throwable's class —instanceofdoes not match because the runtime cause is alwaysWorkflowExecutionException, regardless of the originating type.
-