CompensationFailure

data class CompensationFailure<S>(val originalError: SagaExecutionError, val compensationErrors: List<SagaExecutionError>, val finalState: S) : StatefulSagaResult<Nothing, S>

Saga aborted and compensation failed.

A saga step failed, and at least one compensation also failed. The system may be in an inconsistent state and requires manual intervention.

Parameters

originalError

The error that caused the saga to abort

compensationErrors

List of errors that occurred during compensation

finalState

The saga state at the time of compensation failure

Constructors

Link copied to clipboard
constructor(originalError: SagaExecutionError, compensationErrors: List<SagaExecutionError>, finalState: S)

Properties

Link copied to clipboard
Link copied to clipboard