Turns the monadic context into one that exposes any errors that might have happened.
Mirrors the source, but if an error happens, then fallback to other
.
Mirrors the source, but in case an error happens then use the given total function to fallback to a given element for certain errors.
Mirrors the source, but in case an error happens then use the given total function to fallback to a given element for certain errors.
See onErrorRecover for the alternative accepting a partial function.
Mirrors the source, until the source throws an error, after which it tries to fallback to the output of the given total function.
Mirrors the source, until the source throws an error, after which it tries to fallback to the output of the given total function.
See onErrorRecoverWith for the alternative accepting a partial function.
Mirrors the source, but in case an error happens then use the given partial function to fallback to a given element for certain errors.
Mirrors the source, but in case an error happens then use the given partial function to fallback to a given element for certain errors.
See onErrorHandle for the alternative accepting a total function.
Mirrors the source, until the source throws an error, after which it tries to fallback to the output of the given partial function.
Mirrors the source, until the source throws an error, after which it tries to fallback to the output of the given partial function.
See onErrorHandleWith for the alternative accepting a total function.
Lifts an error into context.
A type-class for monadic contexts that can trigger
E
errors and that are recoverable.