Packages

sealed abstract class Cause[+E] extends Product with Serializable

Self Type
Cause[E]
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Cause
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def canEqual(that: Any): Boolean
    Definition Classes
    Equals
  2. abstract def productArity: Int
    Definition Classes
    Product
  3. abstract def productElement(n: Int): Any
    Definition Classes
    Product

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def &&[E1 >: E](that: Cause[E1]): Cause[E1]

    Returns a cause that fails for this cause and the specified cause, in parallel.

  4. final def ++[E1 >: E](that: Cause[E1]): Cause[E1]

    Returns a cause that fails for this cause and the specified cause, in sequence.

  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def annotated(anns: Map[String, String]): Cause[E]

    Adds the specified annotations.

  7. def annotations: Map[String, String]

    Grabs the annotations from the cause.

  8. final def as[E1](e: => E1): Cause[E1]

    Maps the error value of this cause to the specified constant value.

  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  11. final def contains[E1 >: E](that: Cause[E1]): Boolean

    Determines if this cause contains or is equal to the specified cause.

  12. final def defects: List[Throwable]

    Extracts a list of non-recoverable errors from the Cause.

  13. final def dieOption: Option[Throwable]

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

  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(that: Any): Boolean
    Definition Classes
    Cause → Equals → AnyRef → Any
  16. def failureOption: Option[E]

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

  17. 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.

  18. def failureTraceOption: Option[(E, StackTrace)]

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

  19. 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 the Cause that is known to contain only Die or Interrupt causes.

  20. final def failures: List[E]

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

  21. final def filter(p: (Cause[E]) => Boolean): Cause[E]

    Filters the specified causes out of this cause.

  22. final def find[Z](f: PartialFunction[Cause[E], Z]): Option[Z]

    Finds something and extracts some details from it.

  23. 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.

  24. final def flatten[E1](implicit ev: <:<[E, Cause[E1]]): Cause[E1]

    Flattens a nested cause.

  25. 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
  26. 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.

  27. final def foldLeft[Z](z: Z)(f: PartialFunction[(Z, Cause[E]), Z]): Z

    Folds over the cause to statefully compute a value.

  28. final def foldLog[Z](empty0: => Z, failCase0: (E, 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
  29. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  30. def hashCode(): Int
    Definition Classes
    Cause → AnyRef → Any
  31. final def interruptOption: Option[FiberId]
  32. final def interruptors: Set[FiberId]

    Returns a set of interruptors, fibers that interrupted the fiber described by this Cause.

  33. final def isDie: Boolean
  34. final def isEmpty: Boolean

    Determines if the Cause is empty.

  35. final def isFailure: Boolean
  36. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  37. final def isInterrupted: Boolean

    Determines if the Cause contains an interruption.

  38. final def isInterruptedOnly: Boolean

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

  39. final def isTraced: Boolean

    Determines if the Cause is traced.

  40. final def keepDefects: Option[Cause[Nothing]]

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

  41. 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.

  42. def map[E1](f: (E) => E1): Cause[E1]

    Transforms the error type of this cause with the specified function.

  43. def mapAll(ft: (StackTrace) => StackTrace, fs: (List[LogSpan]) => List[LogSpan], fa: (Map[String, String]) => Map[String, String]): Cause[E]
    Attributes
    protected
  44. final def mapAnnotations(f: (Map[String, String]) => Map[String, String]): Cause[E]

    Transforms the annotations in this cause with the specified function.

  45. final def mapSpans(f: (List[LogSpan]) => List[LogSpan]): Cause[E]

    Transforms the spans in this cause with the specified function.

  46. final def mapTrace(f: (StackTrace) => StackTrace): Cause[E]

    Transforms the traces in this cause with the specified function.

  47. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  48. final def nonEmpty: Boolean
  49. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  50. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  51. final def prettyPrint: String

    Returns a String with the cause pretty-printed.

  52. def productElementName(n: Int): String
    Definition Classes
    Product
  53. def productElementNames: Iterator[String]
    Definition Classes
    Product
  54. def productIterator: Iterator[Any]
    Definition Classes
    Product
  55. def productPrefix: String
    Definition Classes
    Product
  56. def size: Int
  57. def spanned(spans: List[LogSpan]): Cause[E]

    Adds the specified spans.

  58. def spans: List[LogSpan]

    Grabs a complete, linearized list of log spans for the cause.

    Grabs a complete, linearized list of log spans for the cause. Note: This linearization may be misleading in the presence of parallel errors.

  59. final def squash(implicit ev: IsSubtypeOfError[E, Throwable]): Throwable

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

  60. final def squashTrace(implicit ev: IsSubtypeOfError[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. In addition, appends a new element to the suppressed exceptions of the Throwable, with this Cause "pretty printed" (in stackless mode) as the message.

  61. final def squashTraceWith(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. In addition, appends a new element the to Throwables "caused by" chain, with this Cause "pretty printed" (in stackless mode) as the message.

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

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

  63. final def stripFailures: Cause[Nothing]

    Discards all typed failures kept on this Cause.

  64. final def stripSomeDefects(pf: PartialFunction[Throwable, Any]): Option[Cause[E]]

    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.

  65. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  66. def toString(): String
    Definition Classes
    AnyRef → Any
  67. 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.

  68. final def traced(trace: StackTrace): Cause[E]

    Adds the specified execution trace to traces.

  69. final def traces: List[StackTrace]

    Grabs a list of execution traces from the cause.

  70. 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.

  71. final def untraced: Cause[E]

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

  72. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  73. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  74. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped