sealed
trait
Status[+A] extends AnyRef
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
def
flatMap[B](f: (A) ⇒ Status[B]): Status[B]
-
final
def
fold[X](ok: (A) ⇒ X, error: (scalaz.\&/.These[String, Throwable]) ⇒ X): X
-
final
def
foldAll[X](ok: (A) ⇒ X, fail: (String) ⇒ X, exception: (Throwable) ⇒ X, both: (String, Throwable) ⇒ X): X
-
final
def
getClass(): Class[_]
-
def
getOrElse[AA >: A](otherwise: ⇒ AA): AA
-
def
hashCode(): Int
-
def
isError: Boolean
-
final
def
isInstanceOf[T0]: Boolean
-
def
isOk: Boolean
-
def
map[B](f: (A) ⇒ B): Status[B]
-
def
mapError(f: (scalaz.\&/.These[String, Throwable]) ⇒ scalaz.\&/.These[String, Throwable]): Status[A]
-
def
mapErrorMessage(f: (Option[String]) ⇒ String): Status[A]
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
prependErrorMessage(annotation: String): Status[A]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toDisjunction: \/[scalaz.\&/.These[String, Throwable], A]
-
def
toEither: Either[scalaz.\&/.These[String, Throwable], A]
-
def
toOption: Option[A]
-
def
toOptionError: Option[scalaz.\&/.These[String, Throwable]]
-
def
toOptionErrorMessage: Option[String]
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
|||[AA >: A](otherwise: ⇒ Status[AA]): Status[AA]
Inherited from AnyRef
Inherited from Any
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