Lines Matching refs:error

288 				if (resp != null && resp.error != null)
290 if (resp.error.code == 403 &&
291 resp.error.data != null && resp.error.data.length > 0 &&
292 resp.error.data[0].reason == 'domainPolicy')
294 msg = resp.error.message;
315 DriveClient.prototype.executeRequest = function(reqObj, success, error) argument
345 if (error != null)
347 error({code: App.ERROR_TIMEOUT, message: mxResources.get('timeout'), retry: fn});
423 var data = (resp != null && resp.error != null) ? ((resp.error.data != null) ?
424 resp.error.data : resp.error.errors) : null;
430 if (error != null && resp != null && resp.error != null && (resp.error.code == -1 ||
431 (resp.error.code == 403 && (reason == 'domainPolicy' || resp.error.message ==
434 error(resp);
437 else if (resp != null && resp.error != null && (resp.error.code == 401 ||
438 (resp.error.code == 403 && reason != 'rateLimitExceeded')))
441 if ((resp.error.code == 403 && this.retryAuth) ||
442 (resp.error.code == 401 && this.retryAuth && reason == 'authError'))
444 if (error != null)
446 error(resp);
458 … else if (resp != null && resp.error != null && resp.error.code != 412 && resp.error.code != 404 &&
459 resp.error.code != 400 && this.currentRequest == reqObj && retryCount < this.maxRetries)
467 else if (error != null)
469 error(resp);
476 if (error != null)
478 error(e);
489 if (error != null)
491 error(e);
512 if (error != null)
514 error(e);
546 DriveClient.prototype.authorize = function(immediate, success, error, remember, popup) argument
552 this.updateAuthInfo(newAuthInfo, true, true, success, error);
553 }), error);
563 this.authorizeStep2(req.getText(), immediate, success, error, remember, popup);
565 else if (error != null)
567 error(req);
569 }), error);
572 …Client.prototype.updateAuthInfo = function (newAuthInfo, remember, forceUserUpdate, success, error) argument
599 }), error);
608 DriveClient.prototype.authorizeStep2 = function(state, immediate, success, error, remember, popup) argument
636 if (error != null)
638 error();
656 …this.updateAuthInfo(newAuthInfo, true, false, success, error); //We set remember to true since we …
666 if (error != null)
668 error(req); //TODO review this code path and how error is handled
671 }), error);
707 if (error != null)
709error({message: mxResources.get('accessDenied')}); //TODO Check this error handling is correct
714 this.updateAuthInfo(newAuthInfo, remember, true, success, error);
719 if (error != null)
721 error(e);
740 if (error != null)
742 error(e);
763 if (resp != null && resp.error == null && resp.expires_in > 0)
811 DriveClient.prototype.updateUser = function(success, error) argument
843 }), error);
844 }), error, null, null, null, null, headers);
848 if (error != null)
850 error(e);
865 DriveClient.prototype.copyFile = function(id, title, success, error) argument
874 }, success, error);
884 DriveClient.prototype.renameFile = function(id, title, success, error) argument
889 id, {'title' : title}), success, error);
899 DriveClient.prototype.moveFile = function(id, folderId, success, error) argument
904 'drive#fileLink', 'id': folderId}]}), success, error);
927 DriveClient.prototype.getLibrary = function(id, success, error) argument
929 return this.getFile(id, success, error, true, true);
935 DriveClient.prototype.loadDescriptor = function(id, success, error, fields) argument
939 }, success, error);
942 DriveClient.prototype.listFiles = function(searchStr, afterDate, mineOnly, success, error) argument
950 }, success, error);
982 DriveClient.prototype.getFile = function(id, success, error, readXml, readLibrary) argument
1003 this.getXmlFile(resp, success, error);
1004 }), error);
1023 …this.ui.convertFile(url, resp.title, resp.mimeType, this.extension, success, error, null, headers);
1031 this.getXmlFile(resp, success, error, true, readLibrary);
1035 this.getXmlFile(resp, success, error);
1041 error({message: mxResources.get('loggedOut')});
1046 if (error != null)
1048 error(e);
1055 }), error);
1072 DriveClient.prototype.getXmlFile = function(resp, success, error, ignoreMime, readLibrary) argument
1082 if (error != null)
1084 error({message: mxResources.get('exportOptionsDisabledDetails')});
1101 error({message: mxResources.get('invalidOrMissingFile')});
1107 error({message: mxResources.get('notADiagramFile')});
1188 else if (error != null)
1190 error({message: mxResources.get('errorLoadingFile')});
1196 if (error != null)
1198 error(e);
1215 if (error != null)
1217 error(e);
1236 if (error != null)
1238 error(e);
1256 if (error != null)
1258 error(e);
1280 var error = mxUtils.bind(this, function(e)
1299 if (e != null && e.error != null && e.error.code != null)
1301 err += '-code_' + e.error.code;
1324 error(e);
1462 error({message: mxResources.get('errorSavingFile') + ': Empty response'});
1490 error({message: mxResources.get('errorSavingFile') + ': ' + temp}, resp);
1605 error({code: App.ERROR_TIMEOUT});
1635 error(err);
1700 error(err, resp);
1709 error(err);
1747 error({code: App.ERROR_TIMEOUT});
1784 error({error: {code: 412}}, desc2);
1800 error(err);
1869 }), error, (this.ui.getCurrentFile() != file) ?
1946 error({message: mxResources.get('readOnly')});
1961 DriveClient.prototype.insertFile = function(title, data, folderId, success, error, mimeType, binary) argument
1985 if (error != null)
1987 error({message: mxResources.get('errorSavingFile')});
1994 }), error);