ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
flash.events 

HTMLUncaughtScriptExceptionEvent  - AS3

Packageflash.events
Classpublic class HTMLUncaughtScriptExceptionEvent
InheritanceHTMLUncaughtScriptExceptionEvent Inheritance Event Inheritance Object

Runtime Versions: AIR 1.0

An HTMLLoader object dispatches an HTMLUncaughtScriptExceptionEvent object whenever a JavaScript exception is thrown and not handled with a catch statement.

Related API Elements



Public Properties
 PropertyDefined By
 Inheritedbubbles : Boolean
[read-only] Indicates whether an event is a bubbling event.
Event
 Inheritedcancelable : Boolean
[read-only] Indicates whether the behavior associated with the event can be prevented.
Event
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 InheritedcurrentTarget : Object
[read-only] The object that is actively processing the Event object with an event listener.
Event
 InheritedeventPhase : uint
[read-only] The current phase in the event flow.
Event
      exceptionValue : *
The result of evaluating the expression in the throw statement that resulted in the uncaught exception.
HTMLUncaughtScriptExceptionEvent
      stackTrace : Array
An array of objects that represent the stack trace at the time the throw statement that resulted in the uncaught exception was executed.
HTMLUncaughtScriptExceptionEvent
 Inheritedtarget : Object
[read-only] The event target.
Event
 Inheritedtype : String
[read-only] The type of event.
Event
Public Methods
 MethodDefined By
  
    HTMLUncaughtScriptExceptionEvent(exceptionValue:*)
Creates an HTMLUncaughtScriptExceptionEvent object to pass as a parameter to event listeners.
HTMLUncaughtScriptExceptionEvent
  
    clone():Event
[override] Creates a copy of the HTMLUncaughtScriptExceptionEvent object and sets the value of each property to match that of the original.
HTMLUncaughtScriptExceptionEvent
 Inherited
formatToString(className:String, ... arguments):String
A utility function for implementing the toString() method in custom ActionScript 3.0 Event classes.
Event
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Checks whether the preventDefault() method has been called on the event.
Event
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Cancels an event's default behavior if that behavior can be canceled.
Event
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Prevents processing of any event listeners in the current node and any subsequent nodes in the event flow.
Event
 Inherited
Prevents processing of any event listeners in nodes subsequent to the current node in the event flow.
Event
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns a string containing all the properties of the Event object.
Event
 Inherited
Returns the primitive value of the specified object.
Object
Public Constants
 ConstantDefined By
      UNCAUGHT_SCRIPT_EXCEPTION : * = uncaughtScriptException
[static] The HTMLUncaughtScriptExceptionEvent.UNCAUGHT_SCRIPT_EXCEPTION constant defines the value of the type property of an uncaughtScriptException event object.
HTMLUncaughtScriptExceptionEvent
Property Detail
    

exceptionValue

property
public var exceptionValue:*

Runtime Versions: AIR 1.0

The result of evaluating the expression in the throw statement that resulted in the uncaught exception. The exceptionValue property can be a primitive value, a reference to a JavaScript object, or a reference to an ActionScript object.

    

stackTrace

property 
stackTrace:Array

Runtime Versions: AIR 1.0

An array of objects that represent the stack trace at the time the throw statement that resulted in the uncaught exception was executed. Each object in the array has three properties:

  • sourceURL (a string): The URL of the script of the call stack frame.
  • line (a number): The line number in the sourceURL resource of the call stack frame.
  • functionName (a string): The name of the function for the call stack frame.


Implementation
    public function get stackTrace():Array
    public function set stackTrace(value:Array):void
Constructor Detail
    

HTMLUncaughtScriptExceptionEvent

()Constructor
public function HTMLUncaughtScriptExceptionEvent(exceptionValue:*)

Runtime Versions: AIR 1.0

Creates an HTMLUncaughtScriptExceptionEvent object to pass as a parameter to event listeners.

Parameters
exceptionValue:* — When a JavaScript process throws an uncaught exception, the exceptionValue is the result of evaluating the expression in the throw statement that resulted in the uncaught exception. The exceptionValue property can be a primitive value, a reference to a JavaScript object, or a reference to an ActionScript object.
Method Detail

    clone

()method
override public function clone():Event

Runtime Versions: AIR 1.0

Creates a copy of the HTMLUncaughtScriptExceptionEvent object and sets the value of each property to match that of the original.

Returns
Event — The copy of the HTMLUncaughtScriptExceptionEvent object.
Constant Detail
    

UNCAUGHT_SCRIPT_EXCEPTION

Constant
public static const UNCAUGHT_SCRIPT_EXCEPTION:* = uncaughtScriptException

Runtime Versions: AIR 1.0

The HTMLUncaughtScriptExceptionEvent.UNCAUGHT_SCRIPT_EXCEPTION constant defines the value of the type property of an uncaughtScriptException event object.

This event has the following properties:

PropertyValue
bubblesfalse
cancelablefalse; there is no default behavior to cancel.
exceptionValueThe result of evaluating the expression in the throw statement that resulted in the uncaught exception.
stackTraceAn array of objects that represent the stack trace at the time the throw statement that resulted in the uncaught exception was executed.
targetThe HTMLLoader object.