trait error
- Since
2021-10-16
- Companion
- object
Extensions
Extensions
extension (efab: => EitherT[F, A, B])
def catchNonFatalEitherT[F[*], A, B](f: Throwable => AA)(using canCatch: CanCatch[F]): EitherT[F, AA, B]
def handleEitherTNonFatal[F[*], A, B](handleError: Throwable => Either[AA, BB])(using canHandleError: CanHandleError[F]): EitherT[F, AA, BB]
def handleEitherTNonFatalWith[F[*], A, B](handleError: Throwable => F[Either[AA, BB]])(using canHandleError: CanHandleError[F]): EitherT[F, AA, BB]
def recoverEitherTFromNonFatal[F[*], A, B](handleError: PartialFunction[Throwable, Either[AA, BB]])(using canRecover: CanRecover[F]): EitherT[F, AA, BB]
def recoverEitherTFromNonFatalWith[F[*], A, B](handleError: PartialFunction[Throwable, F[Either[AA, BB]]])(using canRecover: CanRecover[F]): EitherT[F, AA, BB]