Cause

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

Type members

Classlikes

final case class Both[+E](left: Cause[E], right: Cause[E]) extends Cause[E]
final case class Die(value: Throwable, trace: StackTrace) extends Cause[Nothing]
case object Empty extends Cause[Nothing]
final case class Fail[+E](value: E, trace: StackTrace) extends Cause[E]
object Folder
Companion:
class
trait Folder[-Context, -E, Z]
Companion:
object
final case class Interrupt(fiberId: FiberId, trace: StackTrace) extends Cause[Nothing]
final case class Stackless[+E](cause: Cause[E], stackless: Boolean) extends Cause[E]
final case class Then[+E](left: Cause[E], right: Cause[E]) extends Cause[E]
final case class Unified(fiberId: FiberId, className: String, message: String, trace: Chunk[StackTraceElement])

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

def die(defect: Throwable, trace: StackTrace): Cause[Nothing]
def fail[E](error: E, trace: StackTrace): Cause[E]
def flipCauseOption[E](cause: Cause[Option[E]]): Option[Cause[E]]

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 interrupt(fiberId: FiberId, trace: StackTrace): Cause[Nothing]
def stack[E](cause: Cause[E]): Cause[E]
def stackless[E](cause: Cause[E]): Cause[E]

Concrete fields

val empty: Cause[Nothing]