Cause

object Cause extends Serializable
Companion:
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Cause.type

Type members

Classlikes

object Both
object Die
object Empty
object Fail
object Interrupt
object Then
object Traced

Inherited types

The names of the product elements

The names of the product elements

Inherited from:
Mirror

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

def die(defect: Throwable): Cause[Nothing]
def fail[E](error: E): Cause[E]
def interrupt(fiberId: Id): Cause[Nothing]
def sequenceCauseEither[E, A](c: Cause[Either[E, A]]): Either[Cause[E], A]

Converts the specified Cause[Either[E, A]] to an Either[Cause[E], A] by recursively stripping out any failures with the error None.

Converts the specified Cause[Either[E, A]] to an Either[Cause[E], A] by recursively stripping out any failures with the error None.

Converts the specified Cause[Option[E]] to an Option[Cause[E]] by recursively stripping out any failures with the error None.

Converts the specified Cause[Option[E]] to an Option[Cause[E]] by recursively stripping out any failures with the error None.

def stack[E](cause: Cause[E]): Cause[E]
def stackless[E](cause: Cause[E]): Cause[E]
def traced[E](cause: Cause[E], trace: ZTrace): Cause[E]

Concrete fields

val empty: Cause[Nothing]