with

infix fun with(reason: String): Nothing

Fails the step with a string reason. Throws StepFailureSignal to immediately exit the step and trigger compensation.


infix inline fun <E : Enum<E>> with(reason: E): Nothing

Fails the step with an enum reason (preserves enum instance). Throws StepFailureSignal to immediately exit the step and trigger compensation.