object Catch
- Source
- Catch.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Catch
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- final class PartiallyAppliedUse[F[_], E] extends AnyRef
- final case class RaisedInUncancellable[E](e: E, alloc: SourcePos, caller: SourcePos) extends RuntimeException with Product with Serializable
- final case class RaisedWithoutHandler[E](e: E, alloc: SourcePos, caller: SourcePos) extends RuntimeException with Product with Serializable
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply[F[_]](implicit F: Catch[F]): Catch[F]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def eitherT[F[_]](implicit F: Concurrent[F]): Catch[[γ$6$]EitherT[F, Vault, γ$6$]]
- 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])
- def fromHandle[F[_]](implicit F: Concurrent[F], H: Handle[F, Vault]): Catch[F]
- def fromLocal[F[_]](implicit F: Concurrent[F], L: Local[F, Vault]): Catch[F]
Implements Catch via the cancellation of an effect
F
.Implements Catch via the cancellation of an effect
F
.Note that when an instance of Catch has been constructed like this, invoking any method on Handle inside an
uncancelable
block is considered an error.Using cancellation to raise errors has some advantages and disadvantages.
Catch, unlike cats.data.EitherT, does not have potentially dangerous semantics regarding resource safety (EitherT's left case when releasing resources). For reference the default implementation of cats.effect.MonadCancel's
guarenteeCase
will not invoke the finalizer when you use cats.data.EitherT and the effect is in theLeft
case. - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def ioCatch: IO[Catch[IO]]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def kleisli[F[_]](implicit arg0: Concurrent[F]): Catch[[γ$4$]Kleisli[F, Vault, γ$4$]]
- 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 synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()