Baseline Widely available *
AggregateError
ê°ì²´ë ë¤ìì ì¤ë¥ê° í ì¤ë¥ë¡ í¬ì¥ëì´ì¼ í ëì ì¤ë¥ë¥¼ ëíë
ëë¤. í ìì
ìì ì¬ë¬ ê°ì ì¤ë¥ê° ë³´ê³ ë ë ë°ìíëë°, ëíì ì¼ë¡ Promise.any()
ì ì ë¬ë 모ë íë¡ë¯¸ì¤ê° ê±°ë¶ëìì ë ë°ìí©ëë¤.
AggregateError
ì Error
ì íì í´ëì¤ ì
ëë¤.
AggregateError()
ìë¡ì´AggregateError
ê°ì²´ë¥¼ ìì±í©ëë¤.
ì¸ì¤í´ì¤ ìì±ì ë¶ëª¨ì¸ Error
ë¡ë¶í° ììë°ìµëë¤.
ìë ìì±ì AggregateError.prototype
ì ì ìëì´ ìì¼ë©° 모ë ì¸ì¤í´ì¤ ê°ì²´ì ê³µì í©ëë¤.
AggregateError.prototype.constructor
ì¸ì¤í´ì¤ ê°ì²´ë¥¼ ìì±íë ìì±ì í¨ìì
ëë¤. AggregateError
ì¸ì¤í´ì¤ìì ì´ê¸° ê°ì AggregateError
ìì±ìì
ëë¤.
AggregateError.prototype.name
ì¤ë¥ì ì íì ëí ì´ë¦ì ëíë
ëë¤. AggregateError.prototype.name
ì ì´ê¸° ê°ì "AggregateError"
ì
ëë¤.
ìë ìì±ì AggregateError
ì¸ì¤í´ì¤ì ìì²´ ìì±ì
ëë¤.
errors
ì§ê³ë ì¤ë¥ë¥¼ ëíë´ë ë°°ì´ì ëë¤.
ì¸ì¤í´ì¤ ë©ìëë ë¶ëª¨ì¸ Error
ë¡ë¶í° ììë°ìµëë¤.
Promise.any([Promise.reject(new Error("some error"))]).catch((e) => {
console.log(e instanceof AggregateError); // true
console.log(e.message); // "All Promises rejected"
console.log(e.name); // "AggregateError"
console.log(e.errors); // [ Error: "some error" ]
});
AggregateError ë°ììí¤ê¸°
try {
throw new AggregateError([new Error("some error")], "Hello");
} catch (e) {
console.log(e instanceof AggregateError); // true
console.log(e.message); // "Hello"
console.log(e.name); // "AggregateError"
console.log(e.errors); // [ Error: "some error" ]
}
ëª
ì¸ì ë¸ë¼ì°ì í¸íì± ê°ì´ 보기
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4