InterceptorError

data class InterceptorError(val step: TypedValue, val phase: SagaExecutionError.Phase, val error: Throwable, val timestamp: Long = System.currentTimeMillis()) : SagaEvent

Emitted when a SagaInterceptor throws an unexpected exception.

The executor catches the exception so that a misbehaving interceptor does not abort saga execution. Monitors receive this event so the error is observable without polluting stderr.

Constructors

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

Properties

Link copied to clipboard

The exception thrown by the interceptor.

Link copied to clipboard

The execution phase (FORWARD for After/Before, COMPENSATION for compensation).

Link copied to clipboard

The step that was being processed when the interceptor threw.

Link copied to clipboard
open override val timestamp: Long

Timestamp when the event occurred (milliseconds since epoch).