coerce To Failure
infix inline fun <Ok : Any, Error : Any> Outcome<Ok, Error>.coerceToFailure(falter: (Ok) -> Error): Failure<Error>
Returns a new Failure, after applying falter to the Success value.
Transforms
Outcome<Ok, Error>
intoFailure<Ok, Error>
.This function does not provide a RaiseScope, and makes no guarantees about catching, handling, or rethrowing errors! Use outcomeOf within the transformation lambda for that.