StepFailedException

class StepFailedException(val failureReason: TypedValue) : Exception

Exception thrown when a step explicitly fails using fails with reason.

This exception wraps the failure reason provided by the step and is used internally to create SagaExecutionError for monitoring and compensation.

Parameters

failureReason

The reason for the step failure wrapped in TypedValue

Constructors

Link copied to clipboard
constructor(failureReason: TypedValue)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val message: String?
Link copied to clipboard

String representation of the failure reason. Provided for backward compatibility.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
inline fun <E : Enum<E>> reasonAs(): E?

Retrieves the failure reason as the specified enum type.