Paket | mx.rpc.events |
Klass | public class FaultEvent |
Arv | FaultEvent AbstractEvent MessageEvent Event Object |
Underklasser | ColdFusionServiceFaultEvent, DataServiceFaultEvent, SyncFaultEvent |
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Egenskap | Definieras med | ||
---|---|---|---|
bubbles : Boolean [skrivskyddad]
indikerar om händelsen är en bubblande händelse. | Event | ||
cancelable : Boolean [skrivskyddad]
Indikerar om beteendet som är kopplat till händelsen kan förhindras. | Event | ||
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | Object | ||
currentTarget : Object [skrivskyddad]
Det objekt som aktivt behandlar Event-objektet med en händelseavlyssnare. | Event | ||
eventPhase : uint [skrivskyddad]
Den nuvarande fasen i händelseflödet. | Event | ||
fault : Fault [skrivskyddad]
The Fault object that contains the details of what caused this event. | FaultEvent | ||
headers : Object
In certain circumstances, headers may also be returned with a fault to
provide further context to the failure. | FaultEvent | ||
message : IMessage
The Message associated with this event. | MessageEvent | ||
statusCode : int [skrivskyddad]
If the source message was sent via HTTP, this property provides access
to the HTTP response status code (if available), otherwise the value is
0. | FaultEvent | ||
target : Object [skrivskyddad]
Händelsens mål. | Event | ||
token : mx.rpc:AsyncToken [skrivskyddad]
The token that represents the call to the method. | AbstractEvent | ||
type : String [skrivskyddad]
Händelsens typ. | Event |
Metod | Definieras med | ||
---|---|---|---|
FaultEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = true, fault:Fault = null, token:mx.rpc:AsyncToken = null, message:IMessage = null)
Creates a new FaultEvent. | FaultEvent | ||
[åsidosätt]
Clones the MessageEvent. | MessageEvent | ||
[statisk]
Given a Fault, this method constructs and
returns a FaultEvent. | FaultEvent | ||
[statisk]
Given a MessageFaultEvent, this method constructs and
returns a FaultEvent. | FaultEvent | ||
Ett verktyg som används för att implementera metoden toString() i de anpassade klasserna ActionScript 3.0. | Event | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Kontrollerar om preventDefault()-metoden har anropats för händelsen. | Event | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Avbryter en händelses standardbeteende om det beteendet kan avbrytas. | Event | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Förhindrar behandling av händelsehanterare i den aktuella noden och alla noder som följer den aktuella noden i händelseflödet. | Event | ||
Förhindrar behandling av händelsehanterare i noder som följer den aktuella noden i händelseflödet. | Event | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
[åsidosätt]
Returns a string representation of the FaultEvent. | FaultEvent | ||
Returnerar det angivna objektets primitiva värde. | Object |
Konstant | Definieras med | ||
---|---|---|---|
FAULT : String = "fault" [statisk]
The FAULT event type. | FaultEvent |
fault | egenskap |
headers | egenskap |
headers:Object
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
In certain circumstances, headers may also be returned with a fault to provide further context to the failure.
Implementering
public function get headers():Object
public function set headers(value:Object):void
statusCode | egenskap |
statusCode:int
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
If the source message was sent via HTTP, this property provides access to the HTTP response status code (if available), otherwise the value is 0.
Implementering
public function get statusCode():int
FaultEvent | () | Konstruktor |
public function FaultEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = true, fault:Fault = null, token:mx.rpc:AsyncToken = null, message:IMessage = null)
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Creates a new FaultEvent. The fault is a required parameter while the call and message are optional.
Parametrartype:String — The event type; indicates the action that triggered the event.
| |
bubbles:Boolean (default = false ) — Specifies whether the event can bubble up the display list hierarchy.
| |
cancelable:Boolean (default = true ) — Specifies whether the behavior associated with the event can be prevented.
| |
fault:Fault (default = null ) — Object that holds details of the fault, including a faultCode and faultString.
| |
token:mx.rpc:AsyncToken (default = null ) — Token representing the call to the method. Used in the asynchronous completion token pattern.
| |
message:IMessage (default = null ) — Source Message of the fault.
|
createEvent | () | metod |
public static function createEvent(fault:Fault, token:mx.rpc:AsyncToken = null, msg:IMessage = null):FaultEvent
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Given a Fault, this method constructs and returns a FaultEvent.
Parametrar
fault:Fault — Fault that contains the details of the FaultEvent.
| |
token:mx.rpc:AsyncToken (default = null ) — AsyncToken [optional] associated with this fault.
| |
msg:IMessage (default = null ) — Message [optional] associated with this fault.
|
FaultEvent — Returns a FaultEvent.
|
createEventFromMessageFault | () | metod |
public static function createEventFromMessageFault(value:MessageFaultEvent, token:mx.rpc:AsyncToken = null):FaultEvent
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Given a MessageFaultEvent, this method constructs and returns a FaultEvent.
Parametrar
value:MessageFaultEvent — MessageFaultEvent reference to extract the appropriate
fault information from.
| |
token:mx.rpc:AsyncToken (default = null ) — AsyncToken [optional] associated with this fault.
|
FaultEvent — Returns a FaultEvent.
|
toString | () | metod |
FAULT | Konstant |
public static const FAULT:String = "fault"
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
The FAULT event type.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | true, calling preventDefault() from the associated token's responder.fault method will prevent the service or operation from dispatching this event |
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 . |
fault | The Fault object that contains the details of what caused this event. |
message | The Message associated with this event. |
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. |
token | The token that represents the call to the method. Used in the asynchronous completion token pattern. |
Tue Jun 12 2018, 01:40 PM Z