Constructs a new AggregateError instance.
new AggregateError(errors, message?, options?)
errors
An iterable list of errors.
message optional
Error message.
options optional
An object containing an optional cause property indicating the cause of the error.