effectie.syntax.error
See theerror companion object
trait error
Attributes
- Since
-
2021-10-16
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Members list
Extensions
Extensions
extension [F[*]](canCatch: CanCatch[F])
def catchNonFatalEitherT[A, AA >: A, B](fab: => EitherT[F, A, B])(f: PartialFunction[Throwable, AA]): EitherT[F, AA, B]
extension [F[*]](canHandleError: CanHandleError[F])
def handleEitherTNonFatal[A, AA >: A, B, BB >: B](efab: => EitherT[F, A, B])(handleError: Throwable => Either[AA, BB]): EitherT[F, AA, BB]
def handleEitherTNonFatalWith[A, AA >: A, B, BB >: B](efab: => EitherT[F, A, B])(handleError: Throwable => F[Either[AA, BB]]): EitherT[F, AA, BB]
extension [F[*]](canRecover: CanRecover[F])
final def recoverEitherTFromNonFatal[A, AA >: A, B, BB >: B](efab: => EitherT[F, A, B])(handleError: PartialFunction[Throwable, Either[AA, BB]]): EitherT[F, AA, BB]
final def recoverEitherTFromNonFatalWith[A, AA >: A, B, BB >: B](efab: => EitherT[F, A, B])(handleError: PartialFunction[Throwable, F[Either[AA, BB]]]): EitherT[F, AA, BB]
extension [F[*], A, B](efab: => EitherT[F, A, B])
def catchNonFatalEitherT[AA >: A](f: PartialFunction[Throwable, AA])(using canCatch: CanCatch[F]): EitherT[F, AA, B]
def handleEitherTNonFatal[AA >: A, BB >: B](handleError: Throwable => Either[AA, BB])(using canHandleError: CanHandleError[F]): EitherT[F, AA, BB]
def handleEitherTNonFatalWith[AA >: A, BB >: B](handleError: Throwable => F[Either[AA, BB]])(using canHandleError: CanHandleError[F]): EitherT[F, AA, BB]
def recoverEitherTFromNonFatal[AA >: A, BB >: B](handleError: PartialFunction[Throwable, Either[AA, BB]])(using canRecover: CanRecover[F]): EitherT[F, AA, BB]
def recoverEitherTFromNonFatalWith[AA >: A, BB >: B](handleError: PartialFunction[Throwable, F[Either[AA, BB]]])(using canRecover: CanRecover[F]): EitherT[F, AA, BB]
extension [F[*], A, B](fab: => F[Either[A, B]])
def catchNonFatalEither[AA >: A](f: PartialFunction[Throwable, AA])(using canCatch: CanCatch[F]): F[Either[AA, B]]
def handleEitherNonFatal[AA >: A, BB >: B](handleError: Throwable => Either[AA, BB])(using canHandleError: CanHandleError[F]): F[Either[AA, BB]]
def handleEitherNonFatalWith[AA >: A, BB >: B](handleError: Throwable => F[Either[AA, BB]])(using canHandleError: CanHandleError[F]): F[Either[AA, BB]]
def recoverEitherFromNonFatal[AA >: A, BB >: B](handleError: PartialFunction[Throwable, Either[AA, BB]])(using canRecover: CanRecover[F]): F[Either[AA, BB]]
def recoverEitherFromNonFatalWith[AA >: A, BB >: B](handleError: PartialFunction[Throwable, F[Either[AA, BB]]])(using canRecover: CanRecover[F]): F[Either[AA, BB]]
extension [F[*], B](fb: => F[B])
def catchNonFatal[A](f: PartialFunction[Throwable, A])(using canCatch: CanCatch[F]): F[Either[A, B]]
def handleNonFatal[BB >: B](handleError: Throwable => BB)(using canHandleError: CanHandleError[F]): F[BB]
def handleNonFatalWith[BB >: B](handleError: Throwable => F[BB])(using canHandleError: CanHandleError[F]): F[BB]
def recoverFromNonFatal[BB >: B](handleError: PartialFunction[Throwable, BB])(using canRecover: CanRecover[F]): F[BB]
def recoverFromNonFatalWith[BB >: B](handleError: PartialFunction[Throwable, F[BB]])(using canRecover: CanRecover[F]): F[BB]
extension [F[*]](fx: Fx[F])
def catchNonFatalEitherT[A, AA >: A, B](fab: => EitherT[F, A, B])(f: PartialFunction[Throwable, AA]): EitherT[F, AA, B]
In this article