onFailure

inline fun onFailure(action: (exception: Failure) -> Unit): Try<Success, Failure>

Performs the given action on the encapsulated value if this instance represents failure. Returns the original Try unchanged.