EvalError object (Object/core)

A native error object based on the Error object.

Availability:

ECMAScript edition - 3
JavaScript - 1.5
Netscape - 6.0
Inherits from:Error object
JavaScript syntax:NmyError = new EvalError()
NmyError = new EvalError(aNumber)
NmyError = new EvalError(aNumber, aText)
Argument list:aNumberAn error number
aTextA text describing the error

This sub-class of the Error object is used when an exception is caused by using the global eval() function incorrectly.

See also:catch( ... ), Error object, RangeError object, ReferenceError object, SyntaxError object, throw, try ... catch ... finally, TypeError object, URIError object

Inheritance chain:

Error object

Cross-references:

ECMA 262 edition 3 - section - 15.11.6.1