CompositeException

final class CompositeException(val head: Throwable, val tail: NonEmptyList[Throwable]) extends RuntimeException with Serializable

A composite exception represents a list of exceptions caught from evaluating multiple independent actions and that need to be signaled together.

A composite exception represents a list of exceptions caught from evaluating multiple independent actions and that need to be signaled together.

Note the constructor doesn't allow wrapping anything less than two throwable references.

Use apply for building composite exceptions.

Companion
object
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

def all: NonEmptyList[Throwable]

Returns the set of all errors wrapped by this composite.

Returns the set of all errors wrapped by this composite.

Inherited methods

final def addSuppressed(`x$0`: Throwable): Unit
Inherited from
Throwable
def fillInStackTrace(): Throwable
Inherited from
Throwable
def getCause(): Throwable
Inherited from
Throwable
def getLocalizedMessage(): String
Inherited from
Throwable
def getMessage(): String
Inherited from
Throwable
def getStackTrace(): Array[StackTraceElement]
Inherited from
Throwable
final def getSuppressed(): Array[Throwable]
Inherited from
Throwable
def initCause(`x$0`: Throwable): Throwable
Inherited from
Throwable
def printStackTrace(`x$0`: PrintWriter): Unit
Inherited from
Throwable
def printStackTrace(`x$0`: PrintStream): Unit
Inherited from
Throwable
def printStackTrace(): Unit
Inherited from
Throwable
def setStackTrace(`x$0`: Array[StackTraceElement]): Unit
Inherited from
Throwable
def toString(): String
Inherited from
Throwable

Concrete fields

val head: Throwable
val tail: NonEmptyList[Throwable]