Lines Matching full:error
139 OneDriveClient.prototype.updateUser = function(success, error, failOnAuth) argument
146 error({code: App.ERROR_TIMEOUT});
163 this.updateUser(success, error, true);
164 }), error);
168 error({message: mxResources.get('accessDenied')});
184 error(err);
214 OneDriveClient.prototype.authenticate = function(success, error, failOnAuth) argument
220 this.updateAuthInfo(newAuthInfo, true, this.endpointHint == null, success, error);
221 }), error, window.urlParams != null && urlParams['odAuthCancellable'] == '1');
231 this.authenticateStep2(req.getText(), success, error, failOnAuth);
233 else if (error != null)
235 error(req);
237 }), error);
240 …eClient.prototype.updateAuthInfo = function(newAuthInfo, remember, forceUserUpdate, success, error) argument
262 }), error);
270 OneDriveClient.prototype.authenticateStep2 = function(state, success, error, failOnAuth) argument
289 this.updateAuthInfo(JSON.parse(req.getText()), authInfo.remember, false, success, error);
303 error({message: mxResources.get('accessDenied'), retry: auth});
306 }), error);
348 error({message: mxResources.get('accessDenied'), retry: auth});
357 this.updateAuthInfo(authInfo, remember, true, success, error);
362 error(e);
386 error({message: mxResources.get('accessDenied'), retry: auth});
396 error({code: App.ERROR_BUSY});
401 OneDriveClient.prototype.getAccountTypeAndEndpoint = function(success, error) argument
436 error({message: mxResources.get('unknownError') + ' (Code: ' + req.getStatus() + ')'});
438 }), error);
444 OneDriveClient.prototype.executeRequest = function(url, success, error) argument
453 error({code: App.ERROR_TIMEOUT, retry: doExecute});
479 }, error, failOnAuth);
483 error(this.parseRequestText(req));
492 error(err);
502 }, error);
558 OneDriveClient.prototype.getLibrary = function(id, success, error) argument
560 this.getFile(id, success, error, false, true);
581 OneDriveClient.prototype.getFile = function(id, success, error, denyConvert, asLibrary) argument
598 this.extension, success, error);
607 error({code: App.ERROR_TIMEOUT})
659 else if (error != null)
661 error({message: mxResources.get('errorLoadingFile')});
667 if (error != null)
669 error(e);
697 if (error != null)
699 error(e);
712 error(this.parseRequestText(req));
724 error({message: mxResources.get('fileNotFoundOrDenied'),
729 error(this.parseRequestText(req));
732 }), error);
741 OneDriveClient.prototype.renameFile = function(file, filename, success, error) argument
747 error({message: this.invalidFilenameRegExs[0].test(filename) ?
757 …mURL(file.getId()), JSON.stringify({name: filename}), 'PATCH', 'application/json', success, error);
761 error();
773 OneDriveClient.prototype.moveFile = function(id, folderId, success, error) argument
781 …error({message: mxResources.get('cannotMoveOneDrive', null, 'Moving a file between accounts is not…
785 …L(id), JSON.stringify({parentReference: folderInfo}), 'PATCH', 'application/json', success, error);
795 OneDriveClient.prototype.insertLibrary = function(filename, data, success, error, folderId) argument
797 this.insertFile(filename, data, success, error, true, folderId);
806 OneDriveClient.prototype.insertFile = function(filename, data, success, error, asLibrary, folderId) argument
810 error({message: this.invalidFilenameRegExs[0].test(filename) ?
848 this.writeLargeFile(this.getItemURL(meta.id), data, insertSuccess, error);
849 }), error);
853 this.writeFile(url, data, 'PUT', null, insertSuccess, error);
858 error();
902 …this.ui.showError(mxResources.get('error'), mxResources.get('fileExists'), mxResources.get('ok'), …
920 OneDriveClient.prototype.saveFile = function(file, success, error, etag) argument
938 this.writeLargeFile(url, data, saveSuccess, error, etag);
942 this.writeFile(url + '/content/', data, 'PUT', null, saveSuccess, error, etag);
953 }), error, (this.ui.getCurrentFile() != file) ?
963 error(e);
967 OneDriveClient.prototype.writeLargeFile = function(url, data, success, error, etag) argument
986 error({code: App.ERROR_TIMEOUT});
1025 error(this.parseRequestText(req), req);
1034 error(this.parseRequestText(req));
1040 error(e);
1056 error({code: App.ERROR_TIMEOUT});
1093 }, error, failOnAuth);
1097 error(this.parseRequestText(req), req);
1106 error(this.parseRequestText(req));
1112 error(e);
1121 }, error);
1130 error({message: mxResources.get('unknownError')});
1135 error(e);
1145 OneDriveClient.prototype.writeFile = function(url, data, method, contentType, success, error, etag) argument
1163 error({code: App.ERROR_TIMEOUT});
1176 // should work but returns an 415 Unsupported Media Type error
1209 }, error, failOnAuth);
1213 error(this.parseRequestText(req), req);
1222 error(this.parseRequestText(req));
1228 error(e);
1237 }, error);
1246 error({message: mxResources.get('unknownError')});
1251 error(e);
1267 if (result.error)
1269 result.error.status = result.status;
1270 result.error.code = result.status;
1329 odPicker = new mxODPicker(div, null, mxUtils.bind(this, function(url, success, error) argument
1334 }, error);
1335 }), mxUtils.bind(this, function(id, driveId, success, error) argument
1340 }, error);
1356 this.ui.showError(mxResources.get('error'), err);
1368 this.ui.showError(mxResources.get('error'), e && e.message? e.message : e);
1403 error: errorFn property
1451 this.ui.showError(mxResources.get('error'), e && e.message? e.message : e);
1487 error: errorFn property