[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/AggregateError/errors [Back]  [Original]

AggregateError: errors - JavaScript | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

AggregateError: errors

Baseline Widely available

This feature is well established and works across many devices and browser versions. Its been available across browsers since 2020 9.

AggregateError errors .

In this article

Array, AggregateError() .

Property attributes of AggregateError: errors

errors

js
try {
  throw new AggregateError(
    // An iterable of errors
    new Set([new Error("some error"), new Error("another error")]),
    "Multiple errors thrown",
  );
} catch (err) {
  console.log(err.errors);
  // [
  //   Error: some error,
  //   Error: another error
  // ]
}

Specification
ECMAScript 2027 LanguageSpecification
# sec-aggregate-error


Web Proxy Viewer  |  New URL  |  Original Page