Baseline Widely available
URIError()
ìì±ìë ì ì URI í¸ë¤ë§ í¨ìê° ì못 ì¬ì©ë ë ì¤ë¥ë¥¼ ìì±í©ëë¤.
new URIError();
new URIError(message);
new URIError(message, fileName);
new URIError(message, fileName, lineNumber);
매ê°ë³ì
message
Optional
ì¬ëì´ ì½ì ì ìë ìë¬ì ëí ì¤ëª .
fileName
Optional
ìì¸ë¥¼ ì¼ì¼í¨ ì½ëê° ë¤ì´ìë íì¼ ì´ë¦.
lineNumber
Optional
ìì¸ë¥¼ ì¼ì¼í¨ ì½ëì ì¤ ì.
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