Error

Wraps a runtime error.

Methods:

Error, toString, toSource

Objects:

String

Property Listing

Property

Type

Access

Description

description

String

read/write

The error message.

Method Listing

Constructor

Error Error (msg:String, [file:String], [line:Number])

Creates a new Error object.

Parameter

Type

Description

msg

String

The error message.

file

String

The name of the file.

line

Number

The line number.

String toSource ()

Creates a string representation of this object that can be fed back to eval() to re-create an object. Works only with built-in classes.

String toString ()

Convert this object to a string.

Object of

$.error

Return

Error.Error()