Referencia de ActionScript® 3.0 para la plataforma de Adobe® Flash®
Inicio  |  Ocultar lista de paquetes y clases |  Paquetes  |  Clases  |  Novedades  |  Índice  |  Apéndices  |  ¿Por qué hay texto en inglés?
Filtros: Recuperando datos del servidor...
Recuperando datos del servidor...
mx.data.events 

DataServiceFaultEvent  - AS3 ADEP Data Services

Paquetemx.data.events
Clasepublic class DataServiceFaultEvent
HerenciaDataServiceFaultEvent Inheritance FaultEvent Inheritance AbstractEvent Inheritance MessageEvent Inheritance Event Inheritance Object
Subclases UnresolvedConflictsEvent

Versión del lenguaje: ActionScript 3.0
Versión de producto: Adobe Digital Enterprise Platform Data Services for Java EE 3
Versiones de motor de ejecución: Flash Player 9, AIR 1.1

The DataServiceFaultEvent class represents an event that is sent when a DataService or DataStore has generated a fault. If the fault was generated for a specific item, the item and/or its identity can be retrieved from this fault.



Propiedades públicas
 PropiedadDefinido por
 Inheritedbubbles : Boolean
[solo lectura] Indica si un evento es un evento de propagación.
Event
  cacheResponse : Boolean
When this property is true this event was dispatched in response to a method call executed against the local cache.
DataServiceFaultEvent
 Inheritedcancelable : Boolean
[solo lectura] Indica si se puede evitar el comportamiento asociado al evento.
Event
 Inheritedconstructor : Object
Una referencia a la clase de objeto o función constructora para una instancia de objeto determinada.
Object
 InheritedcurrentTarget : Object
[solo lectura] Objeto que procesa de forma activa el objeto de evento con un detector de eventos.
Event
 InheritedeventPhase : uint
[solo lectura] La fase actual en el flujo del evento.
Event
 Inheritedfault : Fault
[solo lectura] The Fault object that contains the details of what caused this event.
FaultEvent
 Inheritedheaders : Object
In certain circumstances, headers may also be returned with a fault to provide further context to the failure.
FaultEvent
  identity : Object
The identity of the item that generated the fault.
DataServiceFaultEvent
  item : Object
Stores the item that generated the fault.
DataServiceFaultEvent
 Inheritedmessage : IMessage
The Message associated with this event.
MessageEvent
 InheritedstatusCode : int
[solo lectura] 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
 Inheritedtarget : Object
[solo lectura] El destino del evento.
Event
 Inheritedtoken : mx.rpc:AsyncToken
[solo lectura] The token that represents the call to the method.
AbstractEvent
 Inheritedtype : String
[solo lectura] El tipo de evento.
Event
Métodos públicos
 MétodoDefinido por
  
DataServiceFaultEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = true, fault:Fault = null, token:mx.rpc:AsyncToken = null, message:ErrorMessage = null, obj:Object = null, id:Object = null, cacheResponse:Boolean = false)
Constructor.
DataServiceFaultEvent
 Inherited
[override] Clones the MessageEvent.
MessageEvent
  
createEvent(fault:Fault, token:mx.rpc:AsyncToken, message:ErrorMessage, obj:Object, id:Object, cacheResponse:Boolean = false):DataServiceFaultEvent
[estática] Creates a DataServiceFaultEvent object.
DataServiceFaultEvent
 Inherited
[estática] Given a MessageFaultEvent, this method constructs and returns a FaultEvent.
FaultEvent
 Inherited
formatToString(className:String, ... arguments):String
Una función de utilidad para implementar el método toString() en las clases Event personalizadas de ActionScript 3.0.
Event
 Inherited
Indica si un objeto tiene definida una propiedad especificada.
Object
 Inherited
Comprueba si se ha llamado a preventDefault() en el evento.
Event
 Inherited
Indica si hay una instancia de la clase Object en la cadena de prototipo del objeto especificado como parámetro.
Object
 Inherited
Cancela el comportamiento predeterminado de un evento si es posible cancelarlo.
Event
 Inherited
Indica si existe la propiedad especificada y si es enumerable.
Object
 Inherited
Establece la disponibilidad de una propiedad dinámica para operaciones de bucle.
Object
 Inherited
Impide el proceso de cualquier detector de eventos en el nodo actual y los nodos siguientes en el flujo del evento.
Event
 Inherited
Impide el proceso de cualquier detector de eventos en nodos siguientes al nodo actual.
Event
 Inherited
Devuelve la representación de cadena de este objeto, con formato según las convenciones específicas de configuración regional.
Object
 Inherited
[override] Returns a string representation of the FaultEvent.
FaultEvent
 Inherited
Devuelve el valor simple del objeto especificado.
Object
Constantes públicas
 ConstanteDefinido por
  FAULT : String = "fault"
[estática] The FAULT constant defines the value of the type property of the event object for a fault event.
DataServiceFaultEvent
Información sobre propiedades

cacheResponse

propiedad
public var cacheResponse:Boolean

Versión del lenguaje: ActionScript 3.0
Versión de producto: Adobe Digital Enterprise Platform Data Services for Java EE 3
Versiones de motor de ejecución: Flash Player 9, AIR 1.1

When this property is true this event was dispatched in response to a method call executed against the local cache. When false this event was dispatched in response to a method call executed against the remote destination.

identity

propiedad 
public var identity:Object

Versión del lenguaje: ActionScript 3.0
Versión de producto: Adobe Digital Enterprise Platform Data Services for Java EE 3
Versiones de motor de ejecución: Flash Player 9, AIR 1.1

The identity of the item that generated the fault. This is null if there was no single item associated with the fault.

item

propiedad 
public var item:Object

Versión del lenguaje: ActionScript 3.0
Versión de producto: Adobe Digital Enterprise Platform Data Services for Java EE 3
Versiones de motor de ejecución: Flash Player 9, AIR 1.1

Stores the item that generated the fault. This is null if no item was available or this fault occurred due to the failure of a batch of items.

Información sobre constructores

DataServiceFaultEvent

()Información sobre
public function DataServiceFaultEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = true, fault:Fault = null, token:mx.rpc:AsyncToken = null, message:ErrorMessage = null, obj:Object = null, id:Object = null, cacheResponse:Boolean = false)

Versión del lenguaje: ActionScript 3.0
Versión de producto: Adobe Digital Enterprise Platform Data Services for Java EE 3
Versiones de motor de ejecución: Flash Player 9, AIR 1.1

Constructor.

Parámetros
type:String — The event type; indicates the action that caused 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:ErrorMessage (default = null) — Source Message of the fault.
 
obj:Object (default = null) — The item that generated the fault.
 
id:Object (default = null) — The identity of the item that generated the fault.
 
cacheResponse:Boolean (default = false) — When true, this event was dispatched in response to a method call executed against the local cache. When false this event was dispatched in response to a method call executed against the remote destination.
Información sobre métodos

createEvent

()método
public static function createEvent(fault:Fault, token:mx.rpc:AsyncToken, message:ErrorMessage, obj:Object, id:Object, cacheResponse:Boolean = false):DataServiceFaultEvent

Versión del lenguaje: ActionScript 3.0
Versión de producto: Adobe Digital Enterprise Platform Data Services for Java EE 3
Versiones de motor de ejecución: Flash Player 9, AIR 1.1

Creates a DataServiceFaultEvent object.

Parámetros

fault:Fault — Object that holds details of the fault, including a faultCode and faultString.
 
token:mx.rpc:AsyncToken — Token representing the call to the method. Used in the asynchronous completion token pattern.
 
message:ErrorMessage — Source Message of the fault.
 
obj:Object — The item that generated the fault.
 
id:Object — The identity of the item that generated the fault.
 
cacheResponse:Boolean (default = false) — When true, this event was dispatched in response to a method call executed against the local cache. When false this event was dispatched in response to a method call executed against the remote destination.

Valor devuelto
DataServiceFaultEvent — The new DataServiceFaultEvent object.
Información sobre constantes

FAULT

Constante
public static const FAULT:String = "fault"

Versión del lenguaje: ActionScript 3.0
Versión de producto: Adobe Digital Enterprise Platform Data Services for Java EE 3
Versiones de motor de ejecución: Flash Player 9, AIR 1.1

The FAULT constant defines the value of the type property of the event object for a fault event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelabletrue, calling preventDefault() from the associated token's responder.fault method will prevent the service or operation from dispatching this event
currentTargetThe 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 holds the conflict that occurred.
item The item that generated the fault.
identity The identity of of the item that generated the fault.
message The Message associated with this event.
token The token that represents the call to the method. Used in the asynchronous completion token pattern.
targetThe 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.





[ X ]¿Por qué hay texto en inglés?
Cierto contenido de la Referencia de ActionScript 3.0 se muestra en inglés

No todo el contenido de la Referencia de ActionScript 3.0 se traduce a todos los idiomas. Si un elemento del lenguaje no se traduce, aparecerá en inglés. Por ejemplo, la clase ga.controls.HelpBox no está traducida en ningún idioma. Por lo tanto, en la versión en español de la referencia, la clase ga.controls.HelpBox aparecerá en inglés.