corda / net.corda.core.utilities / Try / doOnFailure

doOnFailure

fun doOnFailure(action: Consumer<Throwable>): Try<A>

Applies the given action to the error if Failure, or does nothing if Success. Returns this for chaining.