Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2020.
The AggregateError object represents an error when several errors need to be wrapped in a single error. It is thrown when multiple errors need to be reported by an operation, for example by Promise.any(), when all promises passed to it reject.
Compared to SuppressedError, AggregateError represents a list of unrelated errors, while SuppressedError represents an error that happened during the handling of another error.
AggregateError is a subclass of Error.
Creates a new AggregateError object.
Also inherits instance properties from its parent Error.
These properties are defined on AggregateError.prototype and shared by all AggregateError instances.
AggregateError.prototype.constructorThe constructor function that created the instance object. For AggregateError instances, the initial value is the AggregateError constructor.
AggregateError.prototype.nameRepresents the name for the type of error. For AggregateError.prototype.name, the initial value is "AggregateError".
These properties are own properties of each AggregateError instance.
errorsAn array representing the errors that were aggregated.
Inherits instance methods from its parent Error.
| ECMAScript® 2027 Language Specification # sec-aggregate-error-objects |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Jan 21, 2026 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.