AggregateError

AggregateError is an Error that wraps multiples errors.

AggregateError is a subclass of Error.

Syntax

AggregateError

Properties

Prototype Properties

See Error for additional properties.

Example

let err = new AggregateError([new Error('first'), new TypeError('second')])
err.errors
[Error {name: "Error", message: "first"}, TypeError {name: "TypeError", message: "second"}]