本文档基于 CC协议(Creative Commons Share-Alike License)发布,是developer.mozilla.com, www.mozref.comwww.aptana.com共同劳动的成果。

ReferenceError : Error

Thrown if reading a variable that does not exist.

Browser/User Agent Support

IEMozillaNetscapeOperaSafari
5.0+1.0+6.0+nono

Constructors

ConstructorIEMozillaNetscapeOperaSafari
Creates a new instance of ReferenceError.
5.0+1.0+6.0+nono
 

Properties

PropertyIEMozillaNetscapeOperaSafari
An error message associated with the ReferenceError.
5.0+1.0+6.0+nono
 
Specifies the type of exception.
5.0+1.0+6.0+nono
 

References

Error | Error.message | Error.name

Availability

JavaScript 1.5 | JScript 5.5 | ECMAScript v3

Constructor Detail

ReferenceError ReferenceError([String message])

Creates a new instance of ReferenceError.

StringmessageAn error message associated with the ReferenceError. (optional)

Property Detail

String message

An error message associated with the ReferenceError.

String name

Specifies the type of exception.