Effect for computation which can fail and return a Throwable, or just stop with a failure
This effect is a mix of Eval and Either in the sense that every computation passed to this effect (with the ok method) is considered "impure" or "faulty" by default.
The type F is used to represent the failure type.
Attributes
- Companion:
- object
- Source:
- ErrorEffect.scala
- Graph
- Supertypes
- trait ErrorInterpretation[F]trait ErrorCreation[F]trait ErrorTypes[F]class Objecttrait Matchableclass Any
- Known subtypes
- object ErrorEffect.type
Members list
Type members
Inherited types
type of errors: exceptions or failure messages
type of errors: exceptions or failure messages
Attributes
- Inherited from:
- ErrorTypes
- Source:
- ErrorEffect.scala
base type for this effect: either an error or a computation to evaluate a "by-name" value
base type for this effect: either an error or a computation to evaluate a "by-name" value
Attributes
- Inherited from:
- ErrorTypes
- Source:
- ErrorEffect.scala
Attributes
- Inherited from:
- ErrorTypes
- Source:
- ErrorEffect.scala
Attributes
- Inherited from:
- ErrorTypes
- Source:
- ErrorEffect.scala
Value members
Inherited methods
evaluate 1 action possibly having error effects
evaluate 1 action possibly having error effects
Execute a second action whether the first is successful or not
Attributes
- Inherited from:
- ErrorInterpretation
- Source:
- ErrorEffect.scala
evaluate 1 action possibly having error effects
evaluate 1 action possibly having error effects
Execute a second action if the first one is not successful, based on the error
Attributes
- Inherited from:
- ErrorInterpretation
- Source:
- ErrorEffect.scala
create an Eff value from an error
Attributes
- Inherited from:
- ErrorInterpretation
- Source:
- ErrorEffect.scala
create an Eff value from a computation
create an Eff value from a computation
Attributes
- Inherited from:
- ErrorCreation
- Source:
- ErrorEffect.scala
create an Eff value from an exception
create an Eff value from an exception
Attributes
- Inherited from:
- ErrorCreation
- Source:
- ErrorEffect.scala
create an Eff value from a failure
ignore one possible exception that could be thrown
ignore one possible exception that could be thrown
Attributes
- Inherited from:
- ErrorInterpretation
- Source:
- ErrorEffect.scala
Lift a computation over a "small" error (for a subsystem) into a computation over a "bigger" error (for the full application)
Lift a computation over a "small" error (for a subsystem) into a computation over a "bigger" error (for the full application)
Attributes
- Inherited from:
- ErrorInterpretation
- Source:
- ErrorEffect.scala
create an Eff value from a computation
create an Eff value from a computation
Attributes
- Inherited from:
- ErrorCreation
- Source:
- ErrorEffect.scala
evaluate 1 action possibly having error effects
evaluate 1 action possibly having error effects
Execute a second action if the first one is not successful
Attributes
- Inherited from:
- ErrorInterpretation
- Source:
- ErrorEffect.scala
Run an error effect.
Run an error effect.
Stop all computation if there is an exception or a failure.
Attributes
- Inherited from:
- ErrorInterpretation
- Source:
- ErrorEffect.scala
Translate an error effect to another one in the same stack a computation over a "bigger" error (for the full application)
Translate an error effect to another one in the same stack a computation over a "bigger" error (for the full application)
Attributes
- Inherited from:
- ErrorInterpretation
- Source:
- ErrorEffect.scala
evaluate 1 action possibly having error effects
evaluate 1 action possibly having error effects
Execute a second action if the first one is not successful, based on the error
The final value type is the same as the original type
Attributes
- Inherited from:
- ErrorInterpretation
- Source:
- ErrorEffect.scala