Class StepInterruptedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.axoniq.framework.workflow.dsl.api.StepFailedException
io.axoniq.framework.workflow.dsl.api.StepInterruptedException
- All Implemented Interfaces:
Serializable
Exception thrown into the workflow body when a step's blocking wait is interrupted because the
workflow itself reached a terminal state (cancelled, failed, timed out) or the engine is shutting down.
A subtype of StepFailedException: callers that want to handle any step-level failure can catch the parent;
callers that need to distinguish this specific case can catch this type. Distinct from
StepCancellationException, which is a per-step cancellation with its own durable <step>:CANCELLED
record.
No durable event backs this exception: the step's last recorded event-log state stays STARTED. This is purely
an in-body signal so the workflow body can run compensation or cleanup logic around its blocking wait; it carries no
bearing on what gets persisted.
- Since:
- 5.4.0
- Author:
- Stefan Dragisic
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStepInterruptedException(String message) Constructs aStepInterruptedExceptionwith a descriptive message.StepInterruptedException(String message, Throwable cause) Constructs aStepInterruptedExceptionwith a message and underlying cause.Constructs aStepInterruptedExceptionwrapping 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
-
StepInterruptedException
Constructs aStepInterruptedExceptionwith a descriptive message.- Parameters:
message- the detail message describing why the wait was interrupted
-
StepInterruptedException
Constructs aStepInterruptedExceptionwith a message and underlying cause.- Parameters:
message- the detail message describing why the wait was interruptedcause- the underlying cause of the interruption
-
StepInterruptedException
Constructs aStepInterruptedExceptionwrapping an underlying cause.- Parameters:
cause- the underlying cause of the interruption
-