Hi @badenkov, this isn’t something we support as part of the dry-transaction class-level DSL. It’s an interesting feature, though, and I’d be happy to consider it – perhaps you could share your use case here?
That said, it is the kind of thing you could implement manually, although it may feel a bit awkward. All failure values are wrapped in
StepFailure objects, which hold the value and the associated failed step object, so you could do potentially override
#call, call super, then act on the result and do something if a failure occurred on a specific step.
Hope this helps — I’d be happy to hear any other thoughts you have on this!