CompensationFailed

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

Emitted when compensation fails.

This is a critical event indicating that a compensation action failed, potentially leaving the system in an inconsistent state.

Constructors

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

Properties

Link copied to clipboard

The exception that caused the compensation to fail

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.