org.specs2.control

Status

sealed trait Status[+A] extends AnyRef

A data type for holding statuses. This is effectively just an Either with a specialized left. This particular specialization handles string/exception based failures and should be used to wrap up unsafe apis (i.e. java code).

This specialization exists for a number of reasons:

Credits to @markhibberd

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Status
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def flatMap[B](f: (A) ⇒ Status[B]): Status[B]

  12. final def fold[X](ok: (A) ⇒ X, error: (scalaz.\&/.These[String, Throwable]) ⇒ X): X

    Annotations
    @inline()
  13. final def foldAll[X](ok: (A) ⇒ X, fail: (String) ⇒ X, exception: (Throwable) ⇒ X, both: (String, Throwable) ⇒ X): X

    Annotations
    @inline()
  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. def getOrElse[AA >: A](otherwise: ⇒ AA): AA

  16. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  17. def isError: Boolean

  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. def isOk: Boolean

  20. def map[B](f: (A) ⇒ B): Status[B]

  21. def mapError(f: (scalaz.\&/.These[String, Throwable]) ⇒ scalaz.\&/.These[String, Throwable]): Status[A]

  22. def mapErrorMessage(f: (Option[String]) ⇒ String): Status[A]

  23. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  26. def prependErrorMessage(annotation: String): Status[A]

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

    Definition Classes
    AnyRef
  28. def toDisjunction: \/[scalaz.\&/.These[String, Throwable], A]

  29. def toEither: Either[scalaz.\&/.These[String, Throwable], A]

  30. def toOption: Option[A]

  31. def toOptionError: Option[scalaz.\&/.These[String, Throwable]]

  32. def toOptionErrorMessage: Option[String]

  33. def toString(): String

    Definition Classes
    AnyRef → Any
  34. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. def |||[AA >: A](otherwise: ⇒ Status[AA]): Status[AA]

Inherited from AnyRef

Inherited from Any

Ungrouped