User Tools

Site Tools


Error

ECMAScript Error prototype object.

More...

Inherits :

Inherited By : NativeError

Properties

Methods

ECMAScript
StringtoString ()

Detailed Description

The base object for Errors reported by the script interpreter. This object can also be used in script to create user-generated errors.

Properties


String : message

A string describing the error.


String : name

The name of the error. By default, it is “Error”.


String : fileName

The name of the script file the error occurred in, if available.


String : lineNumber

The line number that the error occurred on.

Methods


String : toString()

Return Value:

  • A string representation of the Error.