ReferenceError : Error
Return to: JavaScript Core index

Thrown if reading a variable that does not exist.

Platform Support

IE Mozilla Netscape Opera Chrome Safari
5.0+ 1.0+ 6.0+ no no no

Constructors

Constructor Action IE Mozilla Netscape Opera Chrome Safari
ReferenceError Constructor([String message]) : ReferenceError
Creates a new instance of ReferenceError.
Show Details 5.0+ 1.0+ 6.0+ no no no

ReferenceError([String message]) : ReferenceError

Creates a new instance of ReferenceError.

Parameters
String message (optional)An error message associated with the ReferenceError.

Returns
ReferenceError

Properties

Property Action IE Mozilla Netscape Opera Chrome Safari
message : String
An error message associated with the ReferenceError.
No Details 5.0+ 1.0+ 6.0+ no no no
name : String
Specifies the type of exception.
No Details 5.0+ 1.0+ 6.0+ no no no

References

Error|Error.message|Error.name

Availability

JavaScript 1.5|JScript 5.5|ECMAScript v3

text_javascript aptana_docs