catchError -package:fused-effects
A handler function to handle previous errors and return to normal
execution. A common idiom is:
do { action1; action2; action3 } `catchError` handler
where the
action functions can call
throwError. Note
that
handler and the do-block must have the same return type.
Catch an error in the base monad
A handler function to handle previous errors and return to normal
execution. A common idiom is:
do { action1; action2; action3 } `catchError` handler
where the
action functions can call
throwError. Note
that
handler and the do-block must have the same return type.
Handle an error of type e.
Run a computation that might produce exceptions, and give it a way to
deal with the exceptions that come up. The handler is allowed to
rethrow the exception
A catcher for Exceptions. Handlers are allowed to rethrow exceptions.
Preserve the state of the failing computation.
A handler function to handle previous errors and return to normal
execution.
Catch an error using a catch function for the base monad