mapError

inline fun <T, R> Result<T>.mapError(transform: (Throwable) -> Throwable): Result<R>