AggregateError is an Error that wraps multiples errors.
AggregateError is a subclass of Error.
AggregateError
See Error for additional properties.
let err = new AggregateError([new Error('first'), new TypeError('second')])
err.errors
[Error {name: "Error", message: "first"}, TypeError {name: "TypeError", message: "second"}]