Error.message (Property)

A property that corresponds to the message argument in the constructor function.


ECMAScript edition - 3
JavaScript - 1.5
JScript - 5.5
Internet Explorer - 5.5
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myError.message

A human readable textual description of the custom error is available in this property. You can assign a new value if you wish. Reading the property yields the value that was passed in the description argument to the constructor function unless it has been changed since then.



ECMA 262 edition 3 - section -