Veto

data class Veto(val reason: String, val cause: Throwable? = null) : InterceptorOutcome

Veto the step: abort execution and compensate prior completed steps.

Only meaningful when returned from a StepPhase.Before phase. For StepPhase.After and StepPhase.Compensation, the return value is ignored.

Constructors

Link copied to clipboard
constructor(reason: String, cause: Throwable? = null)

Properties

Link copied to clipboard

Optional underlying cause

Link copied to clipboard

Human-readable reason for the veto