Cause

zio.Cause$
See theCause companion class
object Cause extends Serializable

Attributes

Companion
class
Graph
Supertypes
trait Sum
trait Mirror
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
Cause.type

Members list

Type members

Classlikes

final case class Both[+E](left: Cause[E], right: Cause[E]) extends Cause[E]

Attributes

Supertypes
class Cause[E]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
sealed case class Die(value: Throwable, trace: StackTrace) extends Cause[Nothing]

Attributes

Companion
object
Supertypes
class Cause[Nothing]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Die

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
trait (Throwable, StackTrace) => Die
class Object
trait Matchable
class Any
Show all
Self type
Die.type
case object Empty extends Cause[Nothing]

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
class Cause[Nothing]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Empty.type
sealed case class Fail[+E](value: E, trace: StackTrace) extends Cause[E]

Attributes

Companion
object
Supertypes
class Cause[E]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Fail[E]
object Fail

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Fail.type
object Folder

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Folder.type
trait Folder[-Context, -E, Z]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Filter[E]
object IsInterruptedOnly.type
object Size.type
sealed case class Interrupt(fiberId: FiberId, trace: StackTrace) extends Cause[Nothing]

Attributes

Companion
object
Supertypes
class Cause[Nothing]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Show all
Self type
Interrupt.type
final case class Stackless[+E](cause: Cause[E], stackless: Boolean) extends Cause[E]

Attributes

Supertypes
class Cause[E]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class Then[+E](left: Cause[E], right: Cause[E]) extends Cause[E]

Attributes

Supertypes
class Cause[E]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class Unified(fiberId: FiberId, className: String, message: String, trace: Chunk[StackTraceElement])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Inherited types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

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.

Attributes

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]