handleErrorWith
inline fun <E, A> Validated<E, A>.handleErrorWith(f: (E) -> Validated<E, A>): Validated<E, A>(source)
inline fun <A> Result<A>.handleErrorWith(transform: (throwable: Throwable) -> Result<A>): Result<A>(source)
Compose a recovering transform operation on the failure value Throwable whilst flattening Result.
See also
if you want run a function that catches and maps recovers with (Throwable) -> A
.