onError

inline fun onError(action: (Throwable) -> Unit): Result<T>