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

public class StepFailedException extends RuntimeException
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 Details

    • StepFailedException

      public StepFailedException(String message)
      Constructs a StepFailedException with a descriptive message.
      Parameters:
      message - the detail message describing why the step failed
    • StepFailedException

      public StepFailedException(Throwable cause)
      Constructs a StepFailedException wrapping an underlying cause.
      Parameters:
      cause - the underlying cause of the failure
    • StepFailedException

      public StepFailedException(String message, @Nullable Throwable cause)
      Constructs a StepFailedException with a message and an optional underlying cause.
      Parameters:
      message - the detail message describing why the step failed
      cause - the underlying cause of the failure, or null if none