handleError method
Implementation
Evaluation<E, R, W, S, A> handleError(Evaluation<E, R, W, S, A> onError(E err)) {
return new Evaluation(_W, (R r, S s) {
return run(r, s).then((e) {
return e.fold((l) => onError(l).run(r, s), (r) => new Future.value(right(r)));
});
});
}