TypeError object (Object/core)

A native error object based on the Error object.


ECMAScript edition - 3
JavaScript - 1.5
Netscape - 6.0
Inherits from:Error object
JavaScript syntax:NmyError = new TypeError()
NmyError = new TypeError(aNumber)
NmyError = new TypeError(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 an operand having an unexpected data type.

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

Inheritance chain:

Error object


ECMA 262 edition 3 - section -

ECMA 262 edition 3 - section -