//readium-shared/org.readium.r2.shared.util/tryRecover
tryRecover¶
[androidJvm]\ inline fun <R, S : R, F : Throwable> Try<S, F>.tryRecover(transform: (exception: F) -> Try<R, F>): Try<R, F>
Returns the encapsulated result of the given transform function applied to the encapsulated |Throwable] exception if this instance represents failure or the original encapsulated value if it is success.