Object/Trait

org.specs2.control.eff

ErrorEffect

Related Docs: trait ErrorEffect | package eff

Permalink

object ErrorEffect extends ErrorEffect[String]

Simple instantiation of the ErrorEffect trait with String as a Failure type

Linear Supertypes
ErrorEffect[String], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ErrorEffect
  2. ErrorEffect
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. type Error = \/[Throwable, String]

    Permalink

    type of errors: exceptions or failure messages

    type of errors: exceptions or failure messages

    Definition Classes
    ErrorEffect
  2. implicit class ErrorEffectOps[R <: Effects, A] extends AnyRef

    Permalink

    OPERATIONS

    OPERATIONS

    Definition Classes
    ErrorEffect
  3. implicit class ErrorOps[A] extends AnyRef

    Permalink
  4. type ErrorOrOk[A] = \/[Error, Name[A]]

    Permalink

    base type for this effect: either an error or a computation to evaluate scala.Name represents "by-name" value: values not yet evaluated

    base type for this effect: either an error or a computation to evaluate scala.Name represents "by-name" value: values not yet evaluated

    Definition Classes
    ErrorEffect
  5. implicit class ErrorOrOkOps[A] extends AnyRef

    Permalink

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 <: Effects, A](action: Eff[R, A], last: Eff[R, Unit])(implicit m: <=[ErrorOrOk, R]): Eff[R, A]

    Permalink

    evaluate 1 actions possibly having error effects

    evaluate 1 actions possibly having error effects

    Execute a second action whether the first is successful or not

    Definition Classes
    ErrorEffect
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  9. def error[R, A](error: Error)(implicit m: <=[ErrorOrOk, R]): Eff[R, A]

    Permalink

    create an Eff value from an error

    create an Eff value from an error

    Definition Classes
    ErrorEffect
  10. def exception[R, A](t: Throwable)(implicit m: <=[ErrorOrOk, R]): Eff[R, A]

    Permalink

    create an Eff value from an exception

    create an Eff value from an exception

    Definition Classes
    ErrorEffect
  11. def fail[R, A](failure: String)(implicit m: <=[ErrorOrOk, R]): Eff[R, A]

    Permalink

    create an Eff value from a failure

    create an Eff value from a failure

    Definition Classes
    ErrorEffect
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. def ok[R, A](a: ⇒ A)(implicit m: <=[ErrorOrOk, R]): Eff[R, A]

    Permalink

    create an Eff value from a computation

    create an Eff value from a computation

    Definition Classes
    ErrorEffect
  20. def orElse[R <: Effects, 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

    Definition Classes
    ErrorEffect
  21. def render(t: Throwable): String

    Permalink
  22. def renderWithStack(t: Throwable): String

    Permalink
  23. def runError[R <: Effects, A](r: Eff[|:[ErrorOrOk, R], A]): Eff[R, \/[Error, A]]

    Permalink

    Run an error effect.

    Run an error effect.

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

    Definition Classes
    ErrorEffect
  24. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  26. def trace(t: Throwable): String

    Permalink
  27. def traceWithIndent(t: Throwable, indent: String): String

    Permalink
  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. def whenFailed[R <: Effects, 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

    Definition Classes
    ErrorEffect

Inherited from ErrorEffect[String]

Inherited from AnyRef

Inherited from Any

Ungrouped