onFailure

inline fun <T> Resultat<T>.onFailure(action: (exception: Throwable) -> Unit): Resultat<T>

Performs the given action on the encapsulated Throwable exception if this instance represents failure. Returns the original Resultat unchanged.