Class StepTimedOutException
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.StepTimedOutException
- All Implemented Interfaces:
Serializable
Exception thrown when an individual step reaches its configured timeout before completing.
Surfaced by DSL helpers (e.g. awaitEvent, awaitExecute) when the step ends in the TIMED_OUT
state. A subtype of StepFailedException: callers that want to handle any step-level failure can catch the
parent; callers that need to distinguish a timeout specifically can catch this type. Distinct from
StepCancellationException (explicit cancellation).
- Since:
- 5.4.0
- Author:
- Stefan Dragisic
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStepTimedOutException(String message) Constructs aStepTimedOutExceptionwith a descriptive message.StepTimedOutException(String message, Throwable cause) Constructs aStepTimedOutExceptionwith a message and 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
-
StepTimedOutException
Constructs aStepTimedOutExceptionwith a descriptive message.- Parameters:
message- the detail message describing which step timed out and how long it waited
-
StepTimedOutException
Constructs aStepTimedOutExceptionwith a message and underlying cause.- Parameters:
message- the detail message describing which step timed outcause- the underlying cause of the timeout, if any
-