Error

Object
    |
    +-Error

public class Error
extends Object

Contains information about an error that occurred in a script. You create an Error object using the Error constructor function. Typically, you throw a new Error object from within a try code block that is then caught by a catch or finally code block.

You can also create a subclass of the Error class and throw instances of that subclass.

Availability: ActionScript 1.0; Flash Player 7

Property summary

Modifiers

Property

Description

message:String

Contains the message associated with the Error object.

name:String

Contains the name of the Error object.

Properties inherited from class Object

constructor (Object.constructor property), __proto__ (Object.__proto__ property), prototype (Object.prototype property), __resolve (Object.__resolve property)


Constructor summary

Signature

Description

Error([message:String])

Creates a new Error object.

Method summary

Modifiers

Signature

Description

toString() : String

Returns the string "Error" by default or the value contained in Error.message, if defined.

Methods inherited from class Object

addProperty (Object.addProperty method), hasOwnProperty (Object.hasOwnProperty method), isPropertyEnumerable (Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf method), registerClass (Object.registerClass method), toString (Object.toString method), unwatch (Object.unwatch method), valueOf (Object.valueOf method), watch (Object.watch method)