Class/Object

zio

Cause

Related Docs: object Cause | package zio

Permalink

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. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def canEqual(that: Any): Boolean

    Permalink
    Definition Classes
    Equals
  2. abstract def productArity: Int

    Permalink
    Definition Classes
    Product
  3. abstract def productElement(n: Int): Any

    Permalink
    Definition Classes
    Product

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def &&[E1 >: E](that: Cause[E1]): Cause[E1]

    Permalink

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

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

    Permalink

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

  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def as[E1](e: ⇒ E1): Cause[E1]

    Permalink

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

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def contains[E1 >: E](that: Cause[E1]): Boolean

    Permalink

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

  10. final def defects: List[Throwable]

    Permalink

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

  11. final def dieOption: Option[Throwable]

    Permalink

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

  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def failureOption: Option[E]

    Permalink

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

  15. final def failureOrCause: Either[E, Cause[Nothing]]

    Permalink

    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.

  16. def failureTraceOption: Option[(E, ZTrace)]

    Permalink

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

  17. final def failureTraceOrCause: Either[(E, ZTrace), Cause[Nothing]]

    Permalink

    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.

  18. final def failures: List[E]

    Permalink

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

  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. final def find[Z](f: PartialFunction[Cause[E], Z]): Option[Z]

    Permalink

    Finds something and extracts some details from it.

  21. final def flatMap[E2](f: (E) ⇒ Cause[E2]): Cause[E2]

    Permalink

    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.

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

    Permalink

    Flattens a nested cause.

  23. final def fold[Z](empty: ⇒ Z, failCase: (E, ZTrace) ⇒ Z, dieCase: (Throwable, ZTrace) ⇒ Z, interruptCase: (FiberId, ZTrace) ⇒ Z)(thenCase: (Z, Z) ⇒ Z, bothCase: (Z, Z) ⇒ Z, stacklessCase: (Z, Boolean) ⇒ Z): Z

    Permalink

    Folds over the cases of this cause with the specified functions.

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

    Permalink

    Folds over the cause to statefully compute a value.

  25. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  26. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def interruptOption: Option[FiberId]

    Permalink
  28. final def interruptors: Set[FiberId]

    Permalink

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

  29. final def isDie: Boolean

    Permalink
  30. final def isEmpty: Boolean

    Permalink

    Determines if the Cause is empty.

  31. final def isFailure: Boolean

    Permalink
  32. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  33. final def isInterrupted: Boolean

    Permalink

    Determines if the Cause contains an interruption.

  34. final def isInterruptedOnly: Boolean

    Permalink

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

  35. final def isTraced: Boolean

    Permalink

    Determines if the Cause is traced.

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

    Permalink

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

  37. def linearize[E1 >: E]: Set[Cause[E1]]

    Permalink

    Linearizes this cause to a set of parallel causes where each parallel cause contains a linear sequence of failures.

  38. final def map[E1](f: (E) ⇒ E1): Cause[E1]

    Permalink

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

  39. final def mapTrace(f: (ZTrace) ⇒ ZTrace): Cause[E]

    Permalink

    Transforms the traces in this cause with the specified function.

  40. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  41. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  42. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  43. final def prettyPrint: String

    Permalink

    Returns a String with the cause pretty-printed.

  44. def productIterator: Iterator[Any]

    Permalink
    Definition Classes
    Product
  45. def productPrefix: String

    Permalink
    Definition Classes
    Product
  46. final def squash(implicit ev: IsSubtypeOfError[E, Throwable]): Throwable

    Permalink

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

  47. final def squashTrace(implicit ev: IsSubtypeOfError[E, Throwable]): Throwable

    Permalink

    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.

  48. final def squashTraceWith(f: (E) ⇒ Throwable): Throwable

    Permalink

    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.

  49. final def squashWith(f: (E) ⇒ Throwable): Throwable

    Permalink

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

  50. final def stripFailures: Cause[Nothing]

    Permalink

    Discards all typed failures kept on this Cause.

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

    Permalink

    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.

  52. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  53. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  54. final def traced(trace: ZTrace): Cause[E]

    Permalink

    Adds the specified execution trace to traces.

  55. final def traces: List[ZTrace]

    Permalink

    Grabs a list of execution traces from the cause.

  56. final def untraced: Cause[E]

    Permalink

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

  57. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  58. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  59. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. final def died: Boolean

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use isDie

  2. final def failed: Boolean

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use isFailure

  3. final def interrupted: Boolean

    Permalink

    Determines if the Cause contains an interruption.

    Determines if the Cause contains an interruption.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use isInterrupted

  4. final def interruptedOnly: Boolean

    Permalink

    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.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use isInterruptedOnly

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped