JavaScript Error property: name
[this page | pdf | back links]
The name property (of the JavaScript
Error
object) returns the name (i.e. exception type) of an error. When a runtime
error occurs then it is set to one of the following native exception types:
Exception type
|
Description
|
ConversionError
|
(seems not to be
recognised by all browsers). Attempt to convert object into something failed
|
RangeError
|
Function argument
outside its allowable range
|
ReferenceError
|
Invalid reference
detected (e.g. if it is null)
|
RegExpError
|
(seems not to be
recognised by all browsers). Compilation error with a regular
expression
|
SyntaxError
|
When parsed, source
text does not follow correct syntax
|
TypeError
|
Actual type of operand
does not match that expected
|
URIError
|
An illegal URI has been
identified, e.g. an illegal character has appeared
|
NAVIGATION LINKS
Contents | Prev | Next | JavaScript Error Objects