handleFailureWith

inline fun <T> Result<T>.handleFailureWith(f: (Throwable) -> Result<T>): Result<T>(source)

Recovers errors with a function from Throwable to Result.