Cause

sealed abstract class Cause[+E] extends Product with Serializable
Companion:
object
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

final def &&[E1 >: E](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.

final def ++[E1 >: E](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.

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.

final def contains[E1 >: E](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.

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.

Returns the Throwable associated with the first Die in this Cause if one exists.

Returns the Throwable associated with the first Die in this Cause if one exists.

final def died: Boolean
final def failed: Boolean

Returns the E associated with the first Fail in this Cause if one exists.

Returns the E associated with the first Fail in this Cause 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 the Cause that is known to contain only Die or Interrupt causes.

Retrieve the first checked error on the Left if available, if there are no checked errors return the rest of the Cause that is known to contain only Die or Interrupt causes.

Returns the E associated with the first Fail in this Cause if one exists, along with its (optional) trace.

Returns the E associated with the first Fail in this Cause if one exists, along with its (optional) trace.

final def failureTraceOrCause: Either[(E, Option[ZTrace]), 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 the Cause that is known to contain only Die or Interrupt causes.

Retrieve the first checked error and its trace on the Left if available, if there are no checked errors return the rest of the Cause that is known to contain only Die or Interrupt causes.

final def failures: List[E]

Produces a list of all recoverable errors E in the Cause.

Produces a list of all recoverable errors E in the Cause.

final def find[Z](f: PartialFunction[Cause[E], Z]): Option[Z]
final def flatMap[E1](f: E => Cause[E1]): Cause[E1]
final def flatten[E1](implicit ev: E <:< Cause[E1]): Cause[E1]
final def fold[Z](empty: => Z, failCase: E => Z, dieCase: Throwable => Z, interruptCase: Id => Z)(thenCase: (Z, Z) => Z, bothCase: (Z, Z) => Z, tracedCase: (Z, ZTrace) => Z): Z
final def foldLeft[Z](z: Z)(f: PartialFunction[(Z, Cause[E]), Z]): Z
final def interrupted: Boolean

Determines if the Cause contains an interruption.

Determines if the Cause contains an interruption.

Determines if the Cause contains only interruptions and not any Die or Fail causes.

Determines if the Cause contains only interruptions and not any Die or Fail causes.

final def interruptors: Set[Id]

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.

final def isEmpty: Boolean

Determines if the Cause is empty.

Determines if the Cause is empty.

final def keepDefects: Option[Cause[Nothing]]

Remove all Fail and Interrupt nodes from this Cause, return only Die cause/finalizer defects.

Remove all Fail and Interrupt nodes from this Cause, return only Die cause/finalizer defects.

final def map[E1](f: E => E1): Cause[E1]
final def prettyPrint: String

Returns a String with the cause pretty-printed.

Returns a String with the cause pretty-printed.

final def squash(implicit ev: E <:< Throwable): Throwable

Squashes a Cause down to a single Throwable, chosen to be the "most important" Throwable.

Squashes a Cause down to a single Throwable, chosen to be the "most important" Throwable.

final def squashTrace(implicit ev: E <:< Throwable): Throwable

Squashes a Cause down to a single Throwable, chosen to be the "most important" Throwable. In addition, appends a new element to the suppressed exceptions of the Throwable, with this Cause "pretty printed" (in stackless mode) as the message.

Squashes a Cause down to a single Throwable, chosen to be the "most important" Throwable. In addition, appends a new element to the suppressed exceptions of the Throwable, with this Cause "pretty printed" (in stackless mode) as the message.

final def squashTraceWith(f: E => Throwable): Throwable

Squashes a Cause down to a single Throwable, chosen to be the "most important" Throwable. In addition, appends a new element the to Throwables "caused by" chain, with this Cause "pretty printed" (in stackless mode) as the message.

Squashes a Cause down to a single Throwable, chosen to be the "most important" Throwable. In addition, appends a new element the to Throwables "caused by" chain, with this Cause "pretty printed" (in stackless mode) as the message.

final def squashWith(f: E => Throwable): Throwable

Squashes a Cause down to a single Throwable, chosen to be the "most important" Throwable.

Squashes a Cause down to a single Throwable, chosen to be the "most important" Throwable.

final def stripFailures: Cause[Nothing]

Discards all typed failures kept on this Cause.

Discards all typed failures kept on this Cause.

Remove all Die causes that the specified partial function is defined at, returning Some with the remaining causes or None if there are no remaining causes.

Remove all Die causes that the specified partial function is defined at, returning Some with the remaining causes or None if there are no remaining causes.

final def traces: List[ZTrace]

Grabs a list of execution traces from the cause.

Grabs a list of execution traces from the cause.

final def untraced: Cause[E]

Returns a Cause that has been stripped of all tracing information.

Returns a Cause that has been stripped of all tracing information.

Inherited methods

def canEqual(that: Any): Boolean
Inherited from:
Equals
Inherited from:
Product
def productElement(n: Int): Any
Inherited from:
Product
Inherited from:
Product
Inherited from:
Product
Inherited from:
Product