Failure

data class Failure<T>(val error: Exception, val compensatedSteps: Int, val compensationErrors: List<CompensationError>, val duration: Duration) : SagaResult<T> (source)

Saga failed and was compensated.

Constructors

Link copied to clipboard
constructor(error: Exception, compensatedSteps: Int, compensationErrors: List<CompensationError>, duration: Duration)

Properties

Link copied to clipboard

Number of steps successfully compensated

Link copied to clipboard

List of errors that occurred during compensation

Link copied to clipboard

Total execution time including compensation

Link copied to clipboard

The original error that caused the failure

Link copied to clipboard

Whether any compensation (rollback) step itself also failed.

Link copied to clipboard
val isSuccess: Boolean = false

Always false for Failure.