error

trait error
Authors

Kevin Lee

Since

2021-10-16

Companion
object
class Object
trait Matchable
class Any
object error

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]
extension (fab: F[Either[A, B]])
def catchNonFatalEither[F[*], A, B](f: Throwable => AA)(using canCatch: CanCatch[F]): F[Either[AA, B]]
def handleEitherNonFatal[F[*], A, B](handleError: Throwable => Either[AA, BB])(using canHandleError: CanHandleError[F]): F[Either[AA, BB]]
def handleEitherNonFatalWith[F[*], A, B](handleError: Throwable => F[Either[AA, BB]])(using canHandleError: CanHandleError[F]): F[Either[AA, BB]]
def recoverEitherFromNonFatal[F[*], A, B](handleError: PartialFunction[Throwable, Either[AA, BB]])(using canRecover: CanRecover[F]): F[Either[AA, BB]]
def recoverEitherFromNonFatalWith[F[*], A, B](handleError: PartialFunction[Throwable, F[Either[AA, BB]]])(using canRecover: CanRecover[F]): F[Either[AA, BB]]
extension (fb: F[B])
def catchNonFatal[F[*], B](f: Throwable => A)(using canCatch: CanCatch[F]): F[Either[A, B]]
def catchNonFatalThrowable[F[*], B](using canCatch: CanCatch[F]): F[Either[Throwable, B]]
def handleNonFatal[F[*], B](handleError: Throwable => BB)(using canHandleError: CanHandleError[F]): F[BB]
def handleNonFatalWith[F[*], B](handleError: Throwable => F[BB])(using canHandleError: CanHandleError[F]): F[BB]
def recoverFromNonFatal[F[*], B](handleError: PartialFunction[Throwable, BB])(using canRecover: CanRecover[F]): F[BB]
def recoverFromNonFatalWith[F[*], B](handleError: PartialFunction[Throwable, F[BB]])(using canRecover: CanRecover[F]): F[BB]