sealed abstract class Cause[+E] extends Product with Serializable
- Alphabetic
- By Inheritance
- Cause
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
&&[E1 >: E](that: Cause[E1]): Cause[E1]
Returns a cause that fails for this cause and the specified cause, in parallel.
-
final
def
++[E1 >: E](that: Cause[E1]): Cause[E1]
Returns a cause that fails for this cause and the specified cause, in sequence.
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
as[E1](e: ⇒ E1): Cause[E1]
Maps the error value of this cause to the specified constant value.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
contains[E1 >: E](that: Cause[E1]): Boolean
Determines if this cause contains or is equal to the specified cause.
-
final
def
defects: List[Throwable]
Extracts a list of non-recoverable errors from the
Cause
. -
final
def
dieOption: Option[Throwable]
Returns the
Throwable
associated with the firstDie
in thisCause
if one exists. -
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(that: Any): Boolean
- Definition Classes
- Cause → Equals → AnyRef → Any
-
def
failureOption: Option[E]
Returns the
E
associated with the firstFail
in thisCause
if one exists. -
final
def
failureOrCause: Either[E, Cause[Nothing]]
Retrieve the first checked error on the
Left
if available, if there are no checked errors return the rest of theCause
that is known to contain onlyDie
orInterrupt
causes. -
def
failureTraceOption: Option[(E, StackTrace)]
Returns the
E
associated with the firstFail
in thisCause
if one exists, along with its (optional) trace. -
final
def
failureTraceOrCause: Either[(E, StackTrace), Cause[Nothing]]
Retrieve the first checked error and its trace on the
Left
if available, if there are no checked errors return the rest of theCause
that is known to contain onlyDie
orInterrupt
causes. -
final
def
failures: List[E]
Produces a list of all recoverable errors
E
in theCause
. -
final
def
filter(p: (Cause[E]) ⇒ Boolean): Cause[E]
Filters the specified causes out of this cause.
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
find[Z](f: PartialFunction[Cause[E], Z]): Option[Z]
Finds something and extracts some details from it.
-
final
def
flatMap[E2](f: (E) ⇒ Cause[E2]): Cause[E2]
Transforms each error value in this cause to a new cause with the specified function and then flattens the nested causes into a single cause.
-
final
def
flatten[E1](implicit ev: <:<[E, Cause[E1]]): Cause[E1]
Flattens a nested cause.
- final def fold[Z](empty0: ⇒ Z, failCase0: (E, StackTrace) ⇒ Z, dieCase0: (Throwable, StackTrace) ⇒ Z, interruptCase0: (FiberId, StackTrace) ⇒ Z)(thenCase0: (Z, Z) ⇒ Z, bothCase0: (Z, Z) ⇒ Z, stacklessCase0: (Z, Boolean) ⇒ Z): Z
-
final
def
foldContext[C, E1 >: E, Z](context: C)(folder: Folder[C, E1, Z]): Z
Folds over the cases of this cause with the specified functions.
-
final
def
foldLeft[Z](z: Z)(f: PartialFunction[(Z, Cause[E]), Z]): Z
Folds over the cause to statefully compute a value.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- Cause → AnyRef → Any
- final def interruptOption: Option[FiberId]
-
final
def
interruptors: Set[FiberId]
Returns a set of interruptors, fibers that interrupted the fiber described by this
Cause
. - final def isDie: Boolean
-
final
def
isEmpty: Boolean
Determines if the
Cause
is empty. - final def isFailure: Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
isInterrupted: Boolean
Determines if the
Cause
contains an interruption. -
final
def
isInterruptedOnly: Boolean
Determines if the
Cause
contains only interruptions and not anyDie
orFail
causes. -
final
def
isTraced: Boolean
Determines if the
Cause
is traced. -
final
def
keepDefects: Option[Cause[Nothing]]
Remove all
Fail
andInterrupt
nodes from thisCause
, return onlyDie
cause/finalizer defects. -
def
linearize[E1 >: E]: Set[Cause[E1]]
Linearizes this cause to a set of parallel causes where each parallel cause contains a linear sequence of failures.
-
final
def
map[E1](f: (E) ⇒ E1): Cause[E1]
Transforms the error type of this cause with the specified function.
-
final
def
mapTrace(f: (StackTrace) ⇒ StackTrace): Cause[E]
Transforms the traces in this cause with the specified function.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
prettyPrint: String
Returns a
String
with the cause pretty-printed. -
def
productIterator: Iterator[Any]
- Definition Classes
- Product
-
def
productPrefix: String
- Definition Classes
- Product
- def size: Int
-
final
def
squash(implicit ev: IsSubtypeOfError[E, Throwable]): Throwable
Squashes a
Cause
down to a singleThrowable
, chosen to be the "most important"Throwable
. -
final
def
squashTrace(implicit ev: IsSubtypeOfError[E, Throwable]): Throwable
Squashes a
Cause
down to a singleThrowable
, chosen to be the "most important"Throwable
.Squashes a
Cause
down to a singleThrowable
, chosen to be the "most important"Throwable
. In addition, appends a new element to the suppressed exceptions of theThrowable
, with thisCause
"pretty printed" (in stackless mode) as the message. -
final
def
squashTraceWith(f: (E) ⇒ Throwable): Throwable
Squashes a
Cause
down to a singleThrowable
, chosen to be the "most important"Throwable
.Squashes a
Cause
down to a singleThrowable
, chosen to be the "most important"Throwable
. In addition, appends a new element the toThrowable
s "caused by" chain, with thisCause
"pretty printed" (in stackless mode) as the message. -
final
def
squashWith(f: (E) ⇒ Throwable): Throwable
Squashes a
Cause
down to a singleThrowable
, chosen to be the "most important"Throwable
. -
final
def
stripFailures: Cause[Nothing]
Discards all typed failures kept on this
Cause
. -
final
def
stripSomeDefects(pf: PartialFunction[Throwable, Any]): Option[Cause[E]]
Remove all
Die
causes that the specified partial function is defined at, returningSome
with the remaining causes orNone
if there are no remaining causes. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
trace: StackTrace
Grabs a complete, linearized trace for the cause.
Grabs a complete, linearized trace for the cause. Note: This linearization may be misleading in the presence of parallel errors.
-
final
def
traced(trace: StackTrace): Cause[E]
Adds the specified execution trace to traces.
-
final
def
traces: List[StackTrace]
Grabs a list of execution traces from the cause.
-
final
def
unified: List[Unified]
Returns a homogenized list of failures for the cause.
Returns a homogenized list of failures for the cause. This homogenization process throws away key information, but it is useful for interop with traditional stack traces.
-
final
def
untraced: Cause[E]
Returns a
Cause
that has been stripped of all tracing information. -
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()