class ErrorOps[F[+_, +_], +E, +A] extends ApplicativeErrorOps[F, E, A]
- Alphabetic
- By Inheritance
- ErrorOps
- ApplicativeErrorOps
- GuaranteeOps
- ApplicativeOps
- FunctorOps
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def *>[E1 >: E, B](f0: => F[E1, B]): F[E1, B]
execute two operations in order, return result of second operation
execute two operations in order, return result of second operation
- Definition Classes
- ApplicativeOps
- Annotations
- @inline()
- final def <*[E1 >: E, B](f0: => F[E1, B]): F[E1, A]
execute two operations in order, same as
*>
, but return result of first operationexecute two operations in order, same as
*>
, but return result of first operation- Definition Classes
- ApplicativeOps
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- implicit val F: Error2[F]
- Attributes
- protected
- Definition Classes
- ErrorOps → ApplicativeErrorOps → GuaranteeOps → ApplicativeOps → FunctorOps
- final def as[B](b: => B): F[E, B]
- Definition Classes
- FunctorOps
- Annotations
- @inline()
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def attempt: F[Nothing, Either[E, A]]
- Annotations
- @inline()
- final def bimap[E2, B](f: (E) => E2, g: (A) => B): F[E2, B]
- Definition Classes
- ApplicativeErrorOps
- Annotations
- @inline()
- final def catchAll[E2, A2 >: A](h: (E) => F[E2, A2]): F[E2, A2]
- Annotations
- @inline()
- final def catchSome[E1 >: E, A2 >: A](h: PartialFunction[E, F[E1, A2]]): F[E1, A2]
- Annotations
- @inline()
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def flatMap[E1 >: E, B](f0: (A) => F[E1, B]): F[E1, B]
- Annotations
- @inline()
- final def flatten[E1 >: E, A1](implicit ev: <:<[A, F[E1, A1]]): F[E1, A1]
- Annotations
- @inline()
- final def flip: F[A, E]
- Annotations
- @inline()
- final def forever: F[E, Nothing]
- Definition Classes
- ApplicativeOps
- Annotations
- @inline()
- final def fromEither[E1 >: E, A1](implicit ev: <:<[A, Either[E1, A1]]): F[E1, A1]
- Annotations
- @inline()
- final def fromOption[E1 >: E, A1](errorOnNone: => E1)(implicit ev1: <:<[A, Option[A1]]): F[E1, A1]
- Annotations
- @inline()
- final def fromOptionF[E1 >: E, B](fallbackOnNone: => F[E1, B])(implicit ev: <:<[A, Option[B]]): F[E1, B]
- Annotations
- @inline()
- final def fromOptionOr[B](valueOnNone: => B)(implicit ev: <:<[A, Option[B]]): F[E, B]
- Definition Classes
- FunctorOps
- Annotations
- @inline()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def guarantee(cleanup: F[Nothing, Unit]): F[E, A]
- Definition Classes
- GuaranteeOps
- Annotations
- @inline()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def iterateUntil(p: (A) => Boolean): F[E, A]
- Annotations
- @inline()
- final def iterateWhile(p: (A) => Boolean): F[E, A]
- Annotations
- @inline()
- final def leftFlatMap[E2](f: (E) => F[Nothing, E2]): F[E2, A]
- Annotations
- @inline()
- final def leftMap[E2](f: (E) => E2): F[E2, A]
- Definition Classes
- ApplicativeErrorOps
- Annotations
- @inline()
- final def leftMap2[E2, A1 >: A, E3](r2: => F[E2, A1])(f: (E, E2) => E3): F[E3, A1]
- Definition Classes
- ApplicativeErrorOps
- Annotations
- @inline()
- final def map[B](f: (A) => B): F[E, B]
- Definition Classes
- FunctorOps
- Annotations
- @inline()
- final def map2[E2 >: E, B, C](r2: => F[E2, B])(f: (A, B) => C): F[E2, C]
execute two operations in order, map their results
execute two operations in order, map their results
- Definition Classes
- ApplicativeOps
- Annotations
- @inline()
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def orElse[E2, A1 >: A](r2: => F[E2, A1]): F[E2, A1]
- Definition Classes
- ApplicativeErrorOps
- Annotations
- @inline()
- val r: F[E, A]
- Attributes
- protected
- Definition Classes
- ErrorOps → ApplicativeErrorOps → GuaranteeOps → ApplicativeOps → FunctorOps
- final def redeem[E2, B](err: (E) => F[E2, B], succ: (A) => F[E2, B]): F[E2, B]
- Annotations
- @inline()
- final def redeemPure[B](err: (E) => B, succ: (A) => B): F[Nothing, B]
- Annotations
- @inline()
- final def retryUntil(f: (E) => Boolean): F[E, A]
- Annotations
- @inline()
- final def retryUntilF(f: (E) => F[Nothing, Boolean]): F[E, A]
- Annotations
- @inline()
- final def retryWhile(f: (E) => Boolean): F[E, A]
- Annotations
- @inline()
- final def retryWhileF(f: (E) => F[Nothing, Boolean]): F[E, A]
- Annotations
- @inline()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def tap[E1 >: E](f0: (A) => F[E1, Unit]): F[E1, A]
- Annotations
- @inline()
- final def tapBoth[E1 >: E, E2 >: E1](err: (E) => F[E1, Unit])(succ: (A) => F[E2, Unit]): F[E2, A]
- Annotations
- @inline()
- final def tapError[E1 >: E](f: (E) => F[E1, Unit]): F[E1, A]
- Annotations
- @inline()
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def void: F[E, Unit]
- Definition Classes
- FunctorOps
- Annotations
- @inline()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def widen[A1](implicit ev: <:<[A, A1]): F[E, A1]
- Definition Classes
- FunctorOps
- Annotations
- @inline()
- final def widenBoth[E1 >: E, A1](implicit ev2: <:<[A, A1]): F[E1, A1]
- Definition Classes
- ApplicativeErrorOps
- Annotations
- @inline()
- final def widenError[E1 >: E]: F[E1, A]
- Definition Classes
- ApplicativeErrorOps
- Annotations
- @inline()
- final def withFilter[A1 >: A, E1 >: E](predicate: (A) => Boolean)(implicit filter: WithFilter[E1], pos: SourceFilePositionMaterializer): F[E1, A]
for-comprehensions sugar:
for-comprehensions sugar:
for { (1, 2) <- F.pure((2, 1)) } yield ()
Use widenError for pattern matching with non-Throwable errors:
val f = for { (1, 2) <- F.pure((2, 1)).widenError[Option[Unit]] } yield () // f: F[Option[Unit], Unit] = F.fail(Some(())
- Annotations
- @inline()
- final def zip[E2 >: E, B, C](r2: => F[E2, B]): F[E2, (A, B)]
execute two operations in order, return result of both operations
execute two operations in order, return result of both operations
- Definition Classes
- ApplicativeOps
- Annotations
- @inline()