Failed

data class Failed(val failureReason: TypedValue) : StepOutcome<Nothing>

Step failed with a reason.

The saga will trigger compensation for all previously completed steps and return an aborted result.

Parameters

failureReason

The reason for the failure wrapped in TypedValue

Constructors

Link copied to clipboard
constructor(failureReason: TypedValue)

Properties

Link copied to clipboard
Link copied to clipboard

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

Functions

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

Retrieves the failure reason as the specified enum type.