URIError
The URIError() constructor creates an error when a global
URI handling function was used in a wrong way.
Syntax
new URIError()
new URIError(message)
new URIError(message, options)
new URIError(message, fileName)
new URIError(message, fileName, lineNumber)
URIError()
URIError(message)
URIError(message, options)
URIError(message, fileName)
URIError(message, fileName, lineNumber)
Note:
URIError()can be called with or withoutnew. Both create a newURIErrorinstance.
Parameters
messageoptional- : Human-readable description of the error.
optionsoptional- : An object that has the following properties:
causeoptional- : A property indicating the specific cause of the error. When catching and re-throwing an error with a more-specific or useful error message, this property can be used to pass the original error.
- : An object that has the following properties: