Summary
Represents an error when a malformed URI is encountered.
Syntax
new URIError([message[, fileName[, lineNumber]]])
Parameters
- message
- Human-readable description of the error
- fileName
- Non-standard
- The name of the file containing the code that caused the exception
- lineNumber
- Non-standard
- The line number of the code that caused the exception
Description
A URIError is thrown when the URI handling functions are passed a malformed URI.
Properties
For properties available on URIError instances, see Properties of URIError instances.
- prototype
- Allows the addition of properties to a URIError object.
Methods
For methods available on URIError instances, see Methods of URIError instances.
The global URIError contains no methods of its own, however, it does inherit some methods through the prototype chain.
Methods inherited from Object.prototype
__defineGetter__, __defineSetter__, hasOwnProperty, isPrototypeOf, __lookupGetter__, __lookupSetter__, __noSuchMethod__, propertyIsEnumerable, unwatch, watch
__defineGetter__, __defineSetter__, hasOwnProperty, isPrototypeOf, __lookupGetter__, __lookupSetter__, __noSuchMethod__, propertyIsEnumerable, unwatch, watch
URIError instances
All URIError instances inherit from URIError.prototype. You can use the prototype to add properties or methods to all instances.
Properties
- constructor
- Specifies the function that created an instance's prototype.
- name
- Error name.
Note: Although ECMA-262 specifies that
URIError should provide its own message property, in SpiderMonkey, it inherits Error.prototype.message.Methods
- constructor
- Specifies the function that created an instance's prototype.
- name
- Error name.
Note: Although ECMA-262 specifies that
URIError should provide its own message property, in SpiderMonkey, it inherits Error.prototype.message.
Mozilla Developer Network