PanicOps
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
Members list
Value members
Concrete methods
Convert Throwable typed error into a defect
Convert Throwable typed error into a defect
Attributes
Catch all defects in this effect and convert them to Throwable Example:
Catch all defects in this effect and convert them to Throwable Example:
F.pure(1)
.map(_ => ???)
.sandboxThrowable
.catchAll(_ => IO2(println("Caught error!")))
Attributes
Inherited methods
execute two operations in order, return result of second operation
execute two operations in order, return result of second operation
Attributes
- Inherited from:
- ApplicativeOps
execute two operations in order, same as *>
, but return result of first operation
execute two operations in order, same as *>
, but return result of first operation
Attributes
- Inherited from:
- ApplicativeOps
Attributes
- Inherited from:
- FunctorOps
Attributes
- Inherited from:
- ApplicativeErrorOps
Attributes
- Inherited from:
- BracketOps
Attributes
- Inherited from:
- BracketOps
Attributes
- Inherited from:
- BracketOps
Attributes
- Inherited from:
- ErrorOps
Attributes
- Inherited from:
- ErrorOps
Attributes
- Inherited from:
- ApplicativeOps
Attributes
- Inherited from:
- ErrorOps
Attributes
- Inherited from:
- ErrorOps
Attributes
- Inherited from:
- ErrorOps
Attributes
- Inherited from:
- FunctorOps
Attributes
- Inherited from:
- GuaranteeOps
Attributes
- Inherited from:
- BracketOps
Attributes
- Inherited from:
- BracketOps
Attributes
- Inherited from:
- BracketOps
Attributes
- Inherited from:
- BracketOps
Attributes
- Inherited from:
- ErrorOps
Attributes
- Inherited from:
- ErrorOps
Attributes
- Inherited from:
- ErrorOps
Attributes
- Inherited from:
- ApplicativeErrorOps
Attributes
- Inherited from:
- ApplicativeErrorOps
Attributes
- Inherited from:
- FunctorOps
execute two operations in order, map their results
Attributes
- Inherited from:
- ApplicativeErrorOps
Attributes
- Inherited from:
- ErrorOps
Attributes
- Inherited from:
- ErrorOps
Attributes
- Inherited from:
- ErrorOps
Attributes
- Inherited from:
- ErrorOps
Attributes
- Inherited from:
- ErrorOps
Attributes
- Inherited from:
- ErrorOps
Attributes
- Inherited from:
- ErrorOps
Attributes
- Inherited from:
- FunctorOps
Attributes
- Inherited from:
- FunctorOps
Attributes
- Inherited from:
- ApplicativeErrorOps
Attributes
- Inherited from:
- ApplicativeErrorOps
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(())
Attributes
- Inherited from:
- ErrorOps
execute two operations in order, return result of both operations
execute two operations in order, return result of both operations
Attributes
- Inherited from:
- ApplicativeOps