Cause

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

Attributes

Companion:
class
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Cause.type

Members list

Concise view

Type members

Classlikes

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

Attributes

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

Attributes

Companion:
object
Graph
Supertypes
class Cause[Nothing]
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Die.type
case object Empty extends Cause[Nothing]

Attributes

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

Attributes

Companion:
object
Graph
Supertypes
class Cause[E]
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type
Fail[E]
object Fail

Attributes

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

Attributes

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

Attributes

Companion:
object
Graph
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
Graph
Supertypes
class Cause[Nothing]
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type

Attributes

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

Attributes

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

Attributes

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

Attributes

Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any

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]