CanRecover

trait CanRecover[F[*]]
Since

2020-08-17

Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def recoverFromNonFatal[A, AA >: A](fa: => F[A])(handleError: PartialFunction[Throwable, AA]): F[AA]
def recoverFromNonFatalWith[A, AA >: A](fa: => F[A])(handleError: PartialFunction[Throwable, F[AA]]): F[AA]

Concrete methods

@inline
final def recoverEitherFromNonFatal[A, AA >: A, B, BB >: B](fab: => F[Either[A, B]])(handleError: PartialFunction[Throwable, Either[AA, BB]]): F[Either[AA, BB]]
@inline
final def recoverEitherFromNonFatalWith[A, AA >: A, B, BB >: B](fab: => F[Either[A, B]])(handleError: PartialFunction[Throwable, F[Either[AA, BB]]]): F[Either[AA, BB]]