August 2006
Intermediate to advanced
1018 pages
34h 13m
English
Error.name: the type of an error — ECMAScript v3
error.name
The name property of an
Error object (or of an instance of any subclass of Error) specifies
the type of error or exception that occurred. All Error objects
inherit this property from their constructor. The value of the
property is the same as the name of the constructor. Thus
SyntaxError objects have a name
property of “SyntaxError”, and EvalError objects have a name of “EvalError”.
Read now
Unlock full access