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
Recoverable
type-class is the equivalent ofApplicativeError
or ofMonadError
from other libraries like Cats or Scalaz. This type class allows one to abstract over error-handling applicatives.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.
To implement it in instances, inherit from RecoverableClass.
Credit should be given where it is due.The type-class encoding has been copied from the Scado project and Scalaz 8 and the type has been extracted from Cats.