org.specs2.control

Status

Related Docs: object Status | package control

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: Any): Boolean

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

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

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

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

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

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

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

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

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

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

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

  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. def isError: Boolean

  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. def isOk: Boolean

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

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

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

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

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

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

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

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

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

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

  28. def toOption: Option[A]

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

  30. def toOptionErrorMessage: Option[String]

  31. def toString(): String

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped