StepFailed

data class StepFailed(val step: TypedValue, val error: Throwable, val timestamp: Long = System.currentTimeMillis()) : SagaEvent

Emitted when a saga step fails.

Constructors

Link copied to clipboard
constructor(step: TypedValue, error: Throwable, timestamp: Long = System.currentTimeMillis())

Properties

Link copied to clipboard

The exception that caused the failure

Link copied to clipboard

The step identifier wrapped in TypedValue

Link copied to clipboard

String representation for backward compatibility.

Link copied to clipboard
open override val timestamp: Long

Timestamp when the event occurred (milliseconds since epoch).

Functions

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

Retrieves step as specified enum type.