sealed case class Die(value: Throwable, trace: StackTrace) extends Cause[Nothing] with Product with Serializable
- Self Type
- Die
- Alphabetic
- By Inheritance
- Die
- Cause
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Die(value: Throwable, trace: StackTrace)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
&&[E1 >: Nothing](that: Cause[E1]): Cause[E1]
Returns a cause that fails for this cause and the specified cause, in parallel.
Returns a cause that fails for this cause and the specified cause, in parallel.
- Definition Classes
- Cause
-
final
def
++[E1 >: Nothing](that: Cause[E1]): Cause[E1]
Returns a cause that fails for this cause and the specified cause, in sequence.
Returns a cause that fails for this cause and the specified cause, in sequence.
- Definition Classes
- Cause
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
annotated(anns: Map[String, String]): Cause[Nothing]
Adds the specified annotations.
Adds the specified annotations.
- Definition Classes
- Cause
-
def
annotations: Map[String, String]
Grabs the annotations from the cause.
-
final
def
as[E1](e: ⇒ E1): Cause[E1]
Maps the error value of this cause to the specified constant value.
Maps the error value of this cause to the specified constant value.
- Definition Classes
- Cause
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
contains[E1 >: Nothing](that: Cause[E1]): Boolean
Determines if this cause contains or is equal to the specified cause.
Determines if this cause contains or is equal to the specified cause.
- Definition Classes
- Cause
-
final
def
defects: List[Throwable]
Extracts a list of non-recoverable errors from the
Cause.Extracts a list of non-recoverable errors from the
Cause.- Definition Classes
- Cause
-
final
def
dieOption: Option[Throwable]
Returns the
Throwableassociated with the firstDiein thisCauseif one exists.Returns the
Throwableassociated with the firstDiein thisCauseif one exists.- Definition Classes
- Cause
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(that: Any): Boolean
- Definition Classes
- Cause → Equals → AnyRef → Any
-
def
failureOption: Option[Nothing]
Returns the
Eassociated with the firstFailin thisCauseif one exists.Returns the
Eassociated with the firstFailin thisCauseif one exists.- Definition Classes
- Cause
-
final
def
failureOrCause: Either[Nothing, Cause[Nothing]]
Retrieve the first checked error on the
Leftif available, if there are no checked errors return the rest of theCausethat is known to contain onlyDieorInterruptcauses.Retrieve the first checked error on the
Leftif available, if there are no checked errors return the rest of theCausethat is known to contain onlyDieorInterruptcauses.- Definition Classes
- Cause
-
def
failureTraceOption: Option[(Nothing, StackTrace)]
Returns the
Eassociated with the firstFailin thisCauseif one exists, along with its (optional) trace.Returns the
Eassociated with the firstFailin thisCauseif one exists, along with its (optional) trace.- Definition Classes
- Cause
-
final
def
failureTraceOrCause: Either[(Nothing, StackTrace), Cause[Nothing]]
Retrieve the first checked error and its trace on the
Leftif available, if there are no checked errors return the rest of theCausethat is known to contain onlyDieorInterruptcauses.Retrieve the first checked error and its trace on the
Leftif available, if there are no checked errors return the rest of theCausethat is known to contain onlyDieorInterruptcauses.- Definition Classes
- Cause
-
final
def
failures: List[Nothing]
Produces a list of all recoverable errors
Ein theCause.Produces a list of all recoverable errors
Ein theCause.- Definition Classes
- Cause
-
final
def
filter(p: (Cause[Nothing]) ⇒ Boolean): Cause[Nothing]
Filters the specified causes out of this cause.
Filters the specified causes out of this cause.
- Definition Classes
- Cause
-
final
def
find[Z](f: PartialFunction[Cause[Nothing], Z]): Option[Z]
Finds something and extracts some details from it.
Finds something and extracts some details from it.
- Definition Classes
- Cause
-
final
def
flatMap[E2](f: (Nothing) ⇒ 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.
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.
- Definition Classes
- Cause
-
final
def
flatten[E1](implicit ev: <:<[Nothing, Cause[E1]]): Cause[E1]
Flattens a nested cause.
Flattens a nested cause.
- Definition Classes
- Cause
-
final
def
fold[Z](empty0: ⇒ Z, failCase0: (Nothing, StackTrace) ⇒ Z, dieCase0: (Throwable, StackTrace) ⇒ Z, interruptCase0: (FiberId, StackTrace) ⇒ Z)(thenCase0: (Z, Z) ⇒ Z, bothCase0: (Z, Z) ⇒ Z, stacklessCase0: (Z, Boolean) ⇒ Z): Z
- Definition Classes
- Cause
-
final
def
foldContext[C, E1 >: Nothing, Z](context: C)(folder: Folder[C, E1, Z]): Z
Folds over the cases of this cause with the specified functions.
Folds over the cases of this cause with the specified functions.
- Definition Classes
- Cause
-
final
def
foldLeft[Z](z: Z)(f: PartialFunction[(Z, Cause[Nothing]), Z]): Z
Folds over the cause to statefully compute a value.
Folds over the cause to statefully compute a value.
- Definition Classes
- Cause
-
final
def
foldLog[Z](empty0: ⇒ Z, failCase0: (Nothing, StackTrace, List[LogSpan], Map[String, String]) ⇒ Z, dieCase0: (Throwable, StackTrace, List[LogSpan], Map[String, String]) ⇒ Z, interruptCase0: (FiberId, StackTrace, List[LogSpan], Map[String, String]) ⇒ Z)(thenCase0: (Z, Z) ⇒ Z, bothCase0: (Z, Z) ⇒ Z, stacklessCase0: (Z, Boolean) ⇒ Z): Z
- Definition Classes
- Cause
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- Cause → AnyRef → Any
-
final
def
interruptOption: Option[FiberId]
- Definition Classes
- Cause
-
final
def
interruptors: Set[FiberId]
Returns a set of interruptors, fibers that interrupted the fiber described by this
Cause.Returns a set of interruptors, fibers that interrupted the fiber described by this
Cause.- Definition Classes
- Cause
-
final
def
isDie: Boolean
- Definition Classes
- Cause
-
final
def
isEmpty: Boolean
Determines if the
Causeis empty.Determines if the
Causeis empty.- Definition Classes
- Cause
-
final
def
isFailure: Boolean
- Definition Classes
- Cause
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
isInterrupted: Boolean
Determines if the
Causecontains an interruption.Determines if the
Causecontains an interruption.- Definition Classes
- Cause
-
final
def
isInterruptedOnly: Boolean
Determines if the
Causecontains only interruptions and not anyDieorFailcauses.Determines if the
Causecontains only interruptions and not anyDieorFailcauses.- Definition Classes
- Cause
-
final
def
isTraced: Boolean
Determines if the
Causeis traced.Determines if the
Causeis traced.- Definition Classes
- Cause
-
final
def
keepDefects: Option[Cause[Nothing]]
Remove all
FailandInterruptnodes from thisCause, return onlyDiecause/finalizer defects.Remove all
FailandInterruptnodes from thisCause, return onlyDiecause/finalizer defects.- Definition Classes
- Cause
-
def
linearize[E1 >: Nothing]: Set[Cause[E1]]
Linearizes this cause to a set of parallel causes where each parallel cause contains a linear sequence of failures.
Linearizes this cause to a set of parallel causes where each parallel cause contains a linear sequence of failures.
- Definition Classes
- Cause
-
final
def
map[E1](f: (Nothing) ⇒ E1): Cause[E1]
Transforms the error type of this cause with the specified function.
- final def mapAll(ft: (StackTrace) ⇒ StackTrace, fs: (List[LogSpan]) ⇒ List[LogSpan], fa: (Map[String, String]) ⇒ Map[String, String]): Cause[Nothing]
-
final
def
mapAnnotations(f: (Map[String, String]) ⇒ Map[String, String]): Cause[Nothing]
Transforms the annotations in this cause with the specified function.
Transforms the annotations in this cause with the specified function.
- Definition Classes
- Cause
-
final
def
mapSpans(f: (List[LogSpan]) ⇒ List[LogSpan]): Cause[Nothing]
Transforms the spans in this cause with the specified function.
Transforms the spans in this cause with the specified function.
- Definition Classes
- Cause
-
final
def
mapTrace(f: (StackTrace) ⇒ StackTrace): Cause[Nothing]
Transforms the traces in this cause with the specified function.
Transforms the traces in this cause with the specified function.
- Definition Classes
- Cause
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
nonEmpty: Boolean
- Definition Classes
- Cause
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
prettyPrint: String
Returns a
Stringwith the cause pretty-printed.Returns a
Stringwith the cause pretty-printed.- Definition Classes
- Cause
-
def
size: Int
- Definition Classes
- Cause
-
def
spanned(spans: List[LogSpan]): Cause[Nothing]
Adds the specified spans.
Adds the specified spans.
- Definition Classes
- Cause
-
def
spans: List[LogSpan]
Grabs a complete, linearized list of log spans for the cause.
-
final
def
squash(implicit ev: IsSubtypeOfError[Nothing, Throwable]): Throwable
Squashes a
Causedown to a singleThrowable, chosen to be the "most important"Throwable.Squashes a
Causedown to a singleThrowable, chosen to be the "most important"Throwable.- Definition Classes
- Cause
-
final
def
squashTrace(implicit ev: IsSubtypeOfError[Nothing, Throwable]): Throwable
Squashes a
Causedown to a singleThrowable, chosen to be the "most important"Throwable.Squashes a
Causedown 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.- Definition Classes
- Cause
-
final
def
squashTraceWith(f: (Nothing) ⇒ Throwable): Throwable
Squashes a
Causedown to a singleThrowable, chosen to be the "most important"Throwable.Squashes a
Causedown to a singleThrowable, chosen to be the "most important"Throwable. In addition, appends a new element the toThrowables "caused by" chain, with thisCause"pretty printed" (in stackless mode) as the message.- Definition Classes
- Cause
-
final
def
squashWith(f: (Nothing) ⇒ Throwable): Throwable
Squashes a
Causedown to a singleThrowable, chosen to be the "most important"Throwable.Squashes a
Causedown to a singleThrowable, chosen to be the "most important"Throwable.- Definition Classes
- Cause
-
final
def
stripFailures: Cause[Nothing]
Discards all typed failures kept on this
Cause.Discards all typed failures kept on this
Cause.- Definition Classes
- Cause
-
final
def
stripSomeDefects(pf: PartialFunction[Throwable, Any]): Option[Cause[Nothing]]
Remove all
Diecauses that the specified partial function is defined at, returningSomewith the remaining causes orNoneif there are no remaining causes.Remove all
Diecauses that the specified partial function is defined at, returningSomewith the remaining causes orNoneif there are no remaining causes.- Definition Classes
- Cause
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
val
trace: StackTrace
Grabs a complete, linearized trace for the cause.
-
final
def
traced(trace: StackTrace): Cause[Nothing]
Adds the specified execution trace to traces.
Adds the specified execution trace to traces.
- Definition Classes
- Cause
-
final
def
traces: List[StackTrace]
Grabs a list of execution traces from the cause.
Grabs a list of execution traces from the cause.
- Definition Classes
- 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.
- Definition Classes
- Cause
-
final
def
untraced: Cause[Nothing]
Returns a
Causethat has been stripped of all tracing information.Returns a
Causethat has been stripped of all tracing information.- Definition Classes
- Cause
- val value: Throwable
-
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()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )