Trait

org.specs2.control.eff

ErrorInterpretation

Related Doc: package eff

Permalink

trait ErrorInterpretation[F] extends ErrorCreation[F]

Self Type
ErrorInterpretation[F]
Linear Supertypes
ErrorCreation[F], ErrorTypes[F], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ErrorInterpretation
  2. ErrorCreation
  3. ErrorTypes
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Error = Either[Throwable, F]

    Permalink

    type of errors: exceptions or failure messages

    type of errors: exceptions or failure messages

    Definition Classes
    ErrorTypes
  2. type ErrorOrOk[A] = Evaluate[F, A]

    Permalink

    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
  3. type _ErrorOrOk[R] = MemberInOut[ErrorOrOk, R]

    Permalink
    Definition Classes
    ErrorTypes
  4. type _errorOrOk[R] = MemberIn[ErrorOrOk, R]

    Permalink
    Definition Classes
    ErrorTypes

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def andFinally[R, A](action: Eff[R, A], last: Eff[R, Unit])(implicit m: /=[ErrorOrOk, R]): Eff[R, A]

    Permalink

    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

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def catchError[R, A, B](action: Eff[R, A], pure: (A) ⇒ B, onError: (Error) ⇒ Eff[R, B])(implicit m: /=[ErrorOrOk, R]): Eff[R, B]

    Permalink

    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

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def error[R, A](error: Error)(implicit arg0: _errorOrOk[R]): Eff[R, A]

    Permalink

    create an Eff value from an error

    create an Eff value from an error

    Definition Classes
    ErrorCreation
  11. def eval[R, A](a: EvalEffect.Eval[A])(implicit arg0: _errorOrOk[R]): Eff[R, A]

    Permalink

    create an Eff value from a computation

    create an Eff value from a computation

    Definition Classes
    ErrorCreation
  12. def exception[R, A](t: Throwable)(implicit arg0: _errorOrOk[R]): Eff[R, A]

    Permalink

    create an Eff value from an exception

    create an Eff value from an exception

    Definition Classes
    ErrorCreation
  13. def fail[R, A](failure: F)(implicit arg0: _errorOrOk[R]): Eff[R, A]

    Permalink

    create an Eff value from a failure

    create an Eff value from a failure

    Definition Classes
    ErrorCreation
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  16. def ignoreException[R, E <: Throwable, A](action: Eff[R, A])(implicit arg0: ClassTag[E], m: /=[ErrorOrOk, R]): Eff[R, Unit]

    Permalink

    ignore one possible exception that could be thrown

  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  21. def ok[R, A](a: ⇒ A)(implicit arg0: _errorOrOk[R]): Eff[R, A]

    Permalink

    create an Eff value from a computation

    create an Eff value from a computation

    Definition Classes
    ErrorCreation
  22. def orElse[R, A](action: Eff[R, A], onError: Eff[R, A])(implicit m: /=[ErrorOrOk, R]): Eff[R, A]

    Permalink

    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

  23. def runError[R, U, A](r: Eff[R, A])(implicit m: Aux[ErrorOrOk, R, U]): Eff[U, Either[Error, A]]

    Permalink

    Run an error effect.

    Run an error effect.

    Stop all computation if there is an exception or a failure.

  24. def runLocalError[R, U, F1, F2, A](r: Eff[R, A], getter: (F1) ⇒ F2)(implicit sr: Aux[[β$0$]Evaluate[F1, β$0$], R, U], br: |=[[β$1$]Evaluate[F2, β$1$], U]): Eff[U, A]

    Permalink

    Translate an error effect to another one in the same stack a computation over a "bigger" error (for the full application)

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. def whenFailed[R, A](action: Eff[R, A], onError: (Error) ⇒ Eff[R, A])(implicit m: /=[ErrorOrOk, R]): Eff[R, A]

    Permalink

    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

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from ErrorCreation[F]

Inherited from ErrorTypes[F]

Inherited from AnyRef

Inherited from Any

Ungrouped