catcheffect.Catch$
See theCatch companion trait
object Catch
Attributes
- Companion
- trait
- Source
- Catch.scala
- Graph
-
- Supertypes
- Self type
-
Catch.type
Members list
Type members
Classlikes
Attributes
- Source
- Catch.scala
- Supertypes
final case class RaisedInUncancellable[E](e: E, alloc: SourcePos, caller: SourcePos) extends RuntimeException
Attributes
- Source
- Catch.scala
- Supertypes
-
trait Producttrait Equalsclass RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
final case class RaisedWithoutHandler[E](e: E, alloc: SourcePos, caller: SourcePos) extends RuntimeException
Attributes
- Source
- Catch.scala
- Supertypes
-
trait Producttrait Equalsclass RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Value members
Concrete methods
Attributes
- Source
- Catch.scala
Attributes
- Source
- Catch.scala
Attributes
- Source
- Catch.scala
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 the Left
case.
Attributes
- Source
- Catch.scala
Attributes
- Source
- Catch.scala
Attributes
- Source
- Catch.scala
In this article