Functiondojo.rpc.RpcService.errorCallback

dojo.require("dojo.rpc.RpcService");
defined in dojo/rpc/RpcService.js

create callback that calls the Deferres errback method

Usage

function (/*dojo.Deferred*/ deferredRequestHandler) (view source)
parametertypedescription
deferredRequestHandlerdojo.DeferredDeferred The deferred object handling a request.

Encapsulates a sequence of callbacks in response to a value that may not yet be available. This is modeled after the Deferred class from Twisted <http://twistedmatrix.com>.
fieldtypedescription
.addBothFunctionAdd the same function as both a callback and an errback as the next element on the callback sequence.This is useful for code that you want to guarantee to run, e.g. a finalizer.
.addCallbackFunctionAdd a single callback to the end of the callback sequence.
.addCallbacksFunctionAdd separate callback and errback to the end of the callback sequence.
.addErrbackFunctionAdd a single callback to the end of the callback sequence.
.callbackFunctionBegin the callback sequence with a non-error value.
.cancelFunctionCancels a Deferred that has not yet received a value, or is waiting on another Deferred as its value.
.canceller 
.chain 
.errbackFunctionBegin the callback sequence with an error result.
.fired 
.id 
.paused 
.results 
.silentlyCancelled 
._checkFunction 
._fireFunctionUsed internally to exhaust the callback sequence when a result is available.
._nextId 
._resbackFunctionThe private primitive that means either callback or errback