trait ErrorInterpretation[F] extends ErrorCreation[F]
- Alphabetic
- By Inheritance
- ErrorInterpretation
- ErrorCreation
- ErrorTypes
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
type
Error = Either[Throwable, F]
type of errors: exceptions or failure messages
type of errors: exceptions or failure messages
- Definition Classes
- ErrorTypes
-
type
ErrorOrOk[A] = Evaluate[F, A]
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
- Definition Classes
- ErrorTypes
-
type
_ErrorOrOk[R] = Member[ErrorOrOk, R]
- Definition Classes
- ErrorTypes
-
type
_errorOrOk[R] = MemberIn[ErrorOrOk, R]
- Definition Classes
- ErrorTypes
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
andFinally[R, A](action: Eff[R, A], lastAction: Eff[R, Unit])(implicit m: /=[ErrorOrOk, R]): Eff[R, A]
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
catchError[R, A, B](action: Eff[R, A], pure: (A) ⇒ B, onError: (Error) ⇒ Eff[R, B])(implicit m: /=[ErrorOrOk, R]): Eff[R, B]
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
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
error[R, A](error: Error)(implicit arg0: _errorOrOk[R]): Eff[R, A]
create an Eff value from an error
create an Eff value from an error
- Definition Classes
- ErrorCreation
- def errorInterpreter[R, A, B](pureValue: (A) ⇒ B, onError: (Error) ⇒ Eff[R, B]): Interpreter[ErrorOrOk, R, A, B]
-
def
eval[R, A](a: Eval[A])(implicit arg0: _errorOrOk[R]): Eff[R, A]
create an Eff value from a computation
create an Eff value from a computation
- Definition Classes
- ErrorCreation
-
def
exception[R, A](t: Throwable)(implicit arg0: _errorOrOk[R]): Eff[R, A]
create an Eff value from an exception
create an Eff value from an exception
- Definition Classes
- ErrorCreation
-
def
fail[R, A](failure: F)(implicit arg0: _errorOrOk[R]): Eff[R, A]
create an Eff value from a failure
create an Eff value from a failure
- Definition Classes
- ErrorCreation
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
ignoreException[R, E <: Throwable, A](action: Eff[R, A])(implicit arg0: ClassTag[E], m: /=[ErrorOrOk, R]): Eff[R, Unit]
ignore one possible exception that could be thrown
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
localError[SR, BR, U, F1, F2, A](r: Eff[SR, A], getter: (F1) ⇒ F2)(implicit sr: Aux[[β$0$]Evaluate[F1, β$0$], SR, U], br: Aux[[β$1$]Evaluate[F2, β$1$], BR, U]): Eff[BR, A]
Lift a computation over a "small" error (for a subsystem) into a computation over a "bigger" error (for the full application)
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
ok[R, A](a: ⇒ A)(implicit arg0: _errorOrOk[R]): Eff[R, A]
create an Eff value from a computation
create an Eff value from a computation
- Definition Classes
- ErrorCreation
-
def
orElse[R, A](action: Eff[R, A], onError: Eff[R, A])(implicit m: /=[ErrorOrOk, R]): Eff[R, A]
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
-
def
runError[R, U, A](r: Eff[R, A])(implicit m: Aux[ErrorOrOk, R, U]): Eff[U, Either[Error, A]]
Run an error effect.
Run an error effect.
Stop all computation if there is an exception or a failure.
-
def
runLocalError[R, U, F1, F2, A](r: Eff[R, A], getter: (F1) ⇒ F2)(implicit sr: Aux[[β$6$]Evaluate[F1, β$6$], R, U], br: |=[[β$7$]Evaluate[F2, β$7$], U]): Eff[U, A]
Translate an error effect to another one in the same stack a computation over a "bigger" error (for the full application)
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
whenFailed[R, A](action: Eff[R, A], onError: (Error) ⇒ Eff[R, A])(implicit m: /=[ErrorOrOk, R]): Eff[R, A]
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