CompositeException
extends Exception
in package
Represents an exception that is a composite of one or more other exceptions.
This exception is useful in situations where a promise must be rejected
with multiple exceptions. It is used for example to reject the returned
promise from some()
and any()
when too many input promises reject.
Table of Contents
Properties
- $throwables : array<string|int, Throwable>
Methods
- __construct() : mixed
- getThrowables() : array<string|int, Throwable>
Properties
$throwables
private
array<string|int, Throwable>
$throwables
Methods
__construct()
public
__construct(array<string|int, Throwable> $throwables[, string $message = '' ][, int $code = 0 ][, Throwable|null $previous = null ]) : mixed
Parameters
- $throwables : array<string|int, Throwable>
- $message : string = ''
- $code : int = 0
- $previous : Throwable|null = null
getThrowables()
public
getThrowables() : array<string|int, Throwable>