B2G/gecko/toolkit/mozapps/update/nsUpdateService.js
/**
   * There was an error of some kind during the XMLHttpRequest
   * @param   event
   *          The nsIDOMEvent for the load
   */
There was an error of some kind during the XMLHttpRequest
@param   event
The nsIDOMEvent for the load
There was an error of some kind during the XMLHttpRequest @param event The nsIDOMEvent for the load
function UC_onError(event) {
    var request = event.target;
    var status = this._getChannelStatus(request);
    LOG("Checker:onError - request.status: " + status);
    var update = new Update(null);
    update.errorCode = status;
    update.statusText = getStatusTextFromCode(status, 200);
    if (status == Cr.NS_ERROR_OFFLINE) {
      update.errorCode = NETWORK_ERROR_OFFLINE;
    } else if (this._isHttpStatusCode(status)) {
      update.errorCode = HTTP_ERROR_OFFSET + status;
    }
    this._callback.onError(request, update);
    this._request = null;
  }
function UC_onError ( event ) { var request = event . target ; var status = this . _getChannelStatus ( request ) ; LOG ( "Checker:onError - request.status: " + status ) ; var update = new Update ( null ) ; update . errorCode = status ; update . statusText = getStatusTextFromCode ( status , 200 ) ; if ( status == Cr . NS_ERROR_OFFLINE ) { update . errorCode = NETWORK_ERROR_OFFLINE ; } else if ( this . _isHttpStatusCode ( status ) ) { update . errorCode = HTTP_ERROR_OFFSET + status ; } this . _callback . onError ( request , update ) ; this . _request = null ; }
There was an error of some kind during the XMLHttpRequest
 @param   event
          The nsIDOMEvent for the load
There was an error of some kind during the XMLHttpRequest @param event The nsIDOMEvent for the load
// If we can't find an error string specific to this status code, // just use the 200 message from above, which means everything // "looks" fine but there was probably an XML error or a bogus file. // We use a separate constant here because nsIUpdate.errorCode is signed