Simple responder class, extends IResponder, calls the success or fault functions with data or data from an event,
used in all calls to the salesforce API.
If the second argument is null or omitted, a simple default fault handler will be
installed to alert the user to the fault message. If you need to do processing upon fault,
be sure to create this object and specify your fault function.
Example
var ar:AsyncResponder = new AsyncResponder( successfunc, faultfunc);
connection.query("select id from account", ar);
context:Object [read-write]Implementation
public function get context():Object
public function set context(value:Object):void
faultHandler:Function [read-only]Implementation
public function get faultHandler():Function
resultHandler:Function [read-only]Implementation
public function get resultHandler():Function
public function AsyncResponder(result:Function, fault:Function = null, context:Object = null)Parameters
| result:Function |
| |
| fault:Function (default = null) |
| |
| context:Object (default = null) |
public function fault(data:Object):voidParameters
public function result(data:Object):voidParameters