Flash 8 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > 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
|
Modifiers |
Property |
Description |
|---|---|---|
|
|
message |
Contains the message associated with the Error object. |
|
|
name |
Contains the name of the Error object. |
Properties inherited from class Object
|
Signature |
Description |
|---|---|
|
Error |
Creates a new Error object. |
|
Modifiers |
Signature |
Description |
|---|---|---|
|
|
toString |
Returns the string "Error" by default or the value contained in Error.message, if defined. |
Methods inherited from class Object addProperty, hasOwnProperty, isPropertyEnumerable, isPrototypeOf, registerClass, toString, unwatch, valueOf, watch
Version 8
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/8/main/00002195.html