Class StepCancellationException
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.StepCancellationException
- All Implemented Interfaces:
Serializable
Exception thrown when an individual step is cancelled.
A subtype of StepFailedException: callers that want to handle any step-level failure can catch the parent;
callers that need to distinguish a cancellation specifically can catch this type. Distinct from
StepTimedOutException (timeout).
- Since:
- 5.4.0
- Author:
- Stefan Dragisic
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStepCancellationException(String message) Constructs aStepCancellationExceptionwith a descriptive message.StepCancellationException(String message, Throwable cause) Constructs aStepCancellationExceptionwith a message and underlying cause.Constructs aStepCancellationExceptionwrapping 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
-
StepCancellationException
Constructs aStepCancellationExceptionwith a descriptive message.- Parameters:
message- the detail message describing the cancellation reason
-
StepCancellationException
Constructs aStepCancellationExceptionwith a message and underlying cause.- Parameters:
message- the detail message describing the cancellation reasoncause- the underlying cause of the cancellation
-
StepCancellationException
Constructs aStepCancellationExceptionwrapping an underlying cause.- Parameters:
cause- the underlying cause of the cancellation
-