| Package | mx.messaging.events |
| Class | public class MessageFaultEvent |
| Inheritance | MessageFaultEvent Event Object |
| Property | Defined by | ||
|---|---|---|---|
![]() | bubbles : Boolean
Indicates whether an event is a bubbling event.
| Event | |
![]() | cancelable : Boolean
Indicates whether the behavior associated with the event can be prevented.
| Event | |
![]() | constructor : Object
A reference to the class object or constructor function for a given object instance.
| Object | |
![]() | currentTarget : Object
The object that is actively processing the Event object with an event listener.
| Event | |
![]() | eventPhase : uint
The current phase in the event flow.
| Event | |
| faultCode : String
[read-only]
Provides access to the destination specific failure code.
| MessageFaultEvent | ||
| faultDetail : String
[read-only]
Provides destination specific details of the failure.
| MessageFaultEvent | ||
| faultString : String
[read-only]
Provides access to the destination specific reason for the failure.
| MessageFaultEvent | ||
| message : ErrorMessage
The ErrorMessage for this event.
| MessageFaultEvent | ||
![]() | prototype : Object
[static]
A reference to the prototype object of a class or function object.
| Object | |
| rootCause : Object
[read-only]
Provides access to the root cause of the failure, if one exists.
| MessageFaultEvent | ||
![]() | target : Object
The event target.
| Event | |
![]() | type : String
The type of event.
| Event | |
| Method | Defined by | ||
|---|---|---|---|
|
MessageFaultEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, message:ErrorMessage = null)
Constructs an instance of a fault message event for the specified message
and fault information.
| MessageFaultEvent | ||
|
Clones the MessageFaultEvent.
| MessageFaultEvent | ||
|
[static]
Utility method to create a new MessageFaultEvent that doesn't bubble and
is not cancelable.
| MessageFaultEvent | ||
![]() |
A utility function for implementing the
toString() method in your custom Event class. | Event | |
![]() |
Indicates whether an object has a specified property defined.
| Object | |
![]() |
Checks whether
preventDefault() has been called on the event. | Event | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter.
| Object | |
![]() |
Cancels an event's default behavior if that behavior can be canceled.
| Event | |
![]() |
Indicates whether the specified property exists and is enumerable.
| Object | |
![]() |
Sets the availability of a dynamic property for loop operations.
| Object | |
![]() |
Prevents processing of any event listeners in the current node and any subsequent nodes in
the event flow.
| Event | |
![]() |
Prevents processing of any event listeners in nodes subsequent to the current node in the
event flow.
| Event | |
|
Returns a string representation of the MessageFaultEvent.
| MessageFaultEvent | ||
![]() |
Returns the primitive value of the specified object.
| Object | |
| Constant | Defined by | ||
|---|---|---|---|
![]() | ACTIVATE : String = "activate" [static]
Defines the value of the
type property of an activate event object. | Event | |
![]() | ADDED : String = "added" [static]
Defines the value of the
type property of an added event object. | Event | |
![]() | CANCEL : String = "cancel" [static]
Defines the value of the
type property of a cancel event object. | Event | |
![]() | CHANGE : String = "change" [static]
Defines the value of the
type property of a change event object. | Event | |
![]() | CLOSE : String = "close" [static]
Defines the value of the
type property of a close event object. | Event | |
![]() | COMPLETE : String = "complete" [static]
Defines the value of the
type property of a complete event object. | Event | |
![]() | CONNECT : String = "connect" [static]
Defines the value of the
type property of a connect event object. | Event | |
![]() | DEACTIVATE : String = "deactivate" [static]
Defines the value of the
type property of a deactivate event object. | Event | |
![]() | ENTER_FRAME : String = "enterFrame" [static]
Defines the value of the
type property of an enterFrame event object. | Event | |
| FAULT : String = "fault" [static]
The FAULT event type; dispatched for a message fault.
| MessageFaultEvent | ||
![]() | ID3 : String = "id3" [static]
Defines the value of the
type property of an id3 event object. | Event | |
![]() | INIT : String = "init" [static]
Defines the value of the
type property of an init event object. | Event | |
![]() | MOUSE_LEAVE : String = "mouseLeave" [static]
Defines the value of the
type property of a mouseLeave event object. | Event | |
![]() | OPEN : String = "open" [static]
Defines the value of the
type property of an open event object. | Event | |
![]() | REMOVED : String = "removed" [static]
Defines the value of the
type property of a removed event object. | Event | |
![]() | RENDER : String = "render" [static]
Defines the value of the
type property of a render event object. | Event | |
![]() | RESIZE : String = "resize" [static]
Defines the value of the
type property of a resize event object. | Event | |
![]() | SCROLL : String = "scroll" [static]
Defines the value of the
type property of a scroll event object. | Event | |
![]() | SELECT : String = "select" [static]
Defines the value of the
type property of a select event object. | Event | |
![]() | SOUND_COMPLETE : String = "soundComplete" [static]
Defines the value of the
type property of a soundComplete event object. | Event | |
![]() | TAB_CHILDREN_CHANGE : String = "tabChildrenChange" [static]
Defines the value of the
type property of a tabChildrenChange event object. | Event | |
![]() | TAB_ENABLED_CHANGE : String = "tabEnabledChange" [static]
Defines the value of the
type property of a tabEnabledChange event object. | Event | |
![]() | TAB_INDEX_CHANGE : String = "tabIndexChange" [static]
Defines the value of the
type property of a tabIndexChange event object. | Event | |
![]() | UNLOAD : String = "unload" [static]
Defines the value of the
type property of an unload event object. | Event | |
| faultCode | property |
faultCode:String [read-only]
Provides access to the destination specific failure code.
For more specific details see faultString and
faultDetails properties.
The format of the fault codes are provided by the remote destination,
but, will typically have the following form: host.operation.error
For example, "Server.Connect.Failed"
public function get faultCode():String
See also
| faultDetail | property |
faultDetail:String [read-only]Provides destination specific details of the failure.
Typically fault details are a stack trace of an exception thrown at the remote destination.
Implementation public function get faultDetail():String
See also
| faultString | property |
faultString:String [read-only]Provides access to the destination specific reason for the failure.
Implementation public function get faultString():String
See also
| message | property |
public var message:ErrorMessageThe ErrorMessage for this event.
| rootCause | property |
rootCause:Object [read-only]Provides access to the root cause of the failure, if one exists. In the case of custom exceptions thrown by a destination, the root cause represents the top level failure that is merely transported by the ErrorMessage.
Implementation public function get rootCause():Object
See also
| MessageFaultEvent | () | constructor |
public function MessageFaultEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, message:ErrorMessage = null)Constructs an instance of a fault message event for the specified message and fault information.
Parameterstype:String — The type for the MessageAckEvent.
|
|
bubbles:Boolean (default = false) — Specifies whether the event can bubble up the display
list hierarchy.
|
|
cancelable:Boolean (default = false) — Indicates whether the behavior associated with the
event can be prevented.
|
|
message:ErrorMessage (default = null) — The ErrorMessage associated with the fault.
|
| clone | () | method |
public override function clone():EventClones the MessageFaultEvent.
ReturnsEvent —
Copy of this MessageFaultEvent.
|
| createEvent | () | method |
public static function createEvent(msg:ErrorMessage):MessageFaultEventUtility method to create a new MessageFaultEvent that doesn't bubble and is not cancelable.
Parametersmsg:ErrorMessage — The ErrorMessage associated with the fault.
|
MessageFaultEvent —
New MessageFaultEvent.
|
| toString | () | method |
public override function toString():StringReturns a string representation of the MessageFaultEvent.
ReturnsString —
String representation of the MessageFaultEvent.
|
| FAULT | constant |
public static const FAULT:String = "fault"The FAULT event type; dispatched for a message fault.
The value of this constant is "fault".
The properties of the event object have the following values:
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget. |
faultCode | Provides destination-specific details of the failure. |
faultDetail | Provides access to the destination-specific reason for the failure. |
faultString | Provides access to the underlying reason for the failure if the channel did not raise the failure itself. |
message | The ErrorMessage for this event. |
rootCause | Provides access to the underlying reason for the failure, if one exists. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flex/2/langref/mx/messaging/events/MessageFaultEvent.html