Class StepFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.axoniq.framework.workflow.dsl.api.StepFailedException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
StepCancellationException,StepIndeterminateException,StepInterruptedException,StepTimedOutException
Base exception type for individual step failures surfaced by the DSL.
Catch StepFailedException to handle any abnormal step termination — failure, timeout, or cancellation.
StepTimedOutException and StepCancellationException are subtypes for callers that need to distinguish
those cases.
- Since:
- 5.4.0
- Author:
- Stefan Dragisic
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStepFailedException(String message) Constructs aStepFailedExceptionwith a descriptive message.StepFailedException(String message, @Nullable Throwable cause) Constructs aStepFailedExceptionwith a message and an optional underlying cause.StepFailedException(Throwable cause) Constructs aStepFailedExceptionwrapping an underlying cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
StepFailedException
Constructs aStepFailedExceptionwith a descriptive message.- Parameters:
message- the detail message describing why the step failed
-
StepFailedException
Constructs aStepFailedExceptionwrapping an underlying cause.- Parameters:
cause- the underlying cause of the failure
-
StepFailedException
Constructs aStepFailedExceptionwith a message and an optional underlying cause.- Parameters:
message- the detail message describing why the step failedcause- the underlying cause of the failure, ornullif none
-