Handle any error, by mapping it to an A
value.
Handle any error, potentially recovering from it, by mapping it to
an F[A]
value.
Recover from certain errors by mapping them to an A
value.
Recover from certain errors by mapping them to an F[A]
value.
Lift an error into the F
context.
The
MonadError
type-class describes monads that can do error handling.To implement
MonadError
:The purpose of this type-class is to support the data-types in the Monix library and it is considered a shim for a lawful type-class to be supplied by libraries such as Cats or Scalaz or equivalent.
CREDITS: The type-class encoding has been inspired by the Scado project and Scalaz 8 and the type has been extracted from Cats.