| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/URIError | [Back] [Original] |
Get to know MDN better
URIError() URIError
URIError.prototype URIError
URIError.prototype.constructorURIError URIError
URIError.prototype.nameURIError.prototype.name "URIError"
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.stack); //
}
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.stack); //
}
| ECMAScript 2027 LanguageSpecification # sec-native-error-types-used-in-this-standard-urierror |
| Web Proxy Viewer | New URL | Original Page |