CompositeFailure

Companion
class
trait Product
trait Mirror
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredLabel <: String
The name of the type
Inhertied from
Mirror
type MirroredElemLabels <: Tuple
The names of the product elements
Inhertied from
Mirror

Value members

Methods

def apply(first: Throwable, second: Throwable, rest: List[Throwable]): CompositeFailure
def apply(first: Throwable, rest: NonEmptyList[Throwable]): CompositeFailure
def fromList(errors: List[Throwable]): Option[Throwable]
def fromResults(first: Either[Throwable, Unit], second: Either[Throwable, Unit]): Either[Throwable, Unit]
Builds composite failure from the results supplied.
  • When any of the results are on left, then the Left(err) is returned
  • When both results fail, the Left(CompositeFailure(_)) is returned
  • When both results succeeds then Right(()) is returned