Error.toString() (Method)

Return a string primitive version of an Error object.

Availability:

ECMAScript edition - 3
JavaScript - 1.5
JScript - 5.0
Internet Explorer - 5.0
Netscape - 6.0
Netscape Enterprise Server - 2.0
Opera - 3.0
Property/method value type:String primitive
JavaScript syntax:-myBoolean.toString()

The value of the object is converted to a string value that represents its value. The value returned is implementation-dependent.

See also:Cast operator, Error.prototype, toString()

Cross-references:

ECMA 262 edition 3 - section - 15.11.4.4