Baseline Widely available *
URIError
ê°ì²´ë ì ì URI í¸ë¤ë§ í¨ìê° ì못ë ë°©ìì¼ë¡ ì¬ì©ëìì ëì ì¤ë¥ë¥¼ ííí©ëë¤.
URIError()
ìë¡ì´ URIError
ê°ì²´ë¥¼ ë§ëëë¤.
URIError.prototype.message
ì¤ë¥ ë©ìì§. ë¹ë¡ ECMA-262ìì RangeError
ë ë°ëì ìì²´ message
ìì±ì ì ê³µí´ì¼íë¤ê³ ëª
ìíì§ë§, SpiderMonkeyë Error.prototype.message
를 ììí©ëë¤.
URIError.prototype.name
ì¤ë¥ ì´ë¦. Error
ë¡ë¶í° ììëììµëë¤.
URIError.prototype.fileName
ì¤ë¥ê° ë°ìí íì¼ ê²½ë¡. Error
ë¡ë¶í° ììëììµëë¤.
URIError.prototype.lineNumber
ì¤ë¥ê° ë°ìí ê³³ì ì¤ ìì¹. Error
ë¡ë¶í° ììëììµëë¤.
URIError.prototype.columnNumber
ì¤ë¥ê° ë°ìí ê³³ì ì´ ìì¹. Error
ë¡ë¶í° ììëììµëë¤.
URIError.prototype.stack
ì¤í ì¶ì . Error
ë¡ë¶í° ììëììµëë¤.
try {
decodeURIComponent("%");
} catch (e) {
console.log(e instanceof URIError); // true
console.log(e.message); // "malformed URI sequence"
console.log(e.name); // "URIError"
console.log(e.fileName); // "Scratchpad/1"
console.log(e.lineNumber); // 2
console.log(e.columnNumber); // 2
console.log(e.stack); // "@Scratchpad/2:2:3\n"
}
URIError ìì±í기
try {
throw new URIError("Hello", "someFile.js", 10);
} catch (e) {
console.log(e instanceof URIError); // true
console.log(e.message); // "Hello"
console.log(e.name); // "URIError"
console.log(e.fileName); // "someFile.js"
console.log(e.lineNumber); // 10
console.log(e.columnNumber); // 0
console.log(e.stack); // "@Scratchpad/2:2:9\n"
}
ëª
ì¸ ë¸ë¼ì°ì í¸íì± ê°ì´ 보기
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