mapError

inline fun <T, E1, E2> Result<T, E1>.mapError(block: (E1) -> E2): Result<T, E2>
fun <T, E> <Error class: unknown class><T>.mapError(block: (Throwable) -> E): Result<T, E>