|
485 |
return this._request(lang.mixin({ |
485 |
return this._request(lang.mixin({ |
486 |
url: '/univention/' + command, |
486 |
url: '/univention/' + command, |
487 |
data: _body, |
487 |
data: _body, |
488 |
errorHandler: this.__getErrorHandler(handleErrors), |
488 |
errorHandler: this.getErrorHandler(handleErrors), |
489 |
flavor: flavor, |
489 |
flavor: flavor, |
490 |
headers: {}, |
490 |
headers: {}, |
491 |
withCredentials: false, |
491 |
withCredentials: false, |
|
563 |
} |
563 |
} |
564 |
}, |
564 |
}, |
565 |
|
565 |
|
566 |
__getErrorHandler: function(handleErrors) { |
566 |
getErrorHandler: function(handleErrors) { |
567 |
var custom = {}; |
567 |
var custom = {}; |
568 |
if (handleErrors === false) { |
568 |
if (handleErrors === false) { |
569 |
custom = { |
569 |
custom = { |
|
670 |
|
670 |
|
671 |
displayTraceback: function(info) { |
671 |
displayTraceback: function(info) { |
672 |
topic.publish('/umc/actions', 'error', 'traceback'); |
672 |
topic.publish('/umc/actions', 'error', 'traceback'); |
673 |
tools.showTracebackDialog(info.traceback, info.title + '\n\n' + info.message, null, custom.hideInformVendor); |
673 |
return tools.showTracebackDialog(info.traceback, info.title + '\n\n' + info.message, null, custom.hideInformVendor); |
674 |
} |
674 |
} |
675 |
}, custom); |
675 |
}, custom); |
676 |
return errorHandler; |
676 |
return errorHandler; |
|
865 |
if (401 === info.status) { |
865 |
if (401 === info.status) { |
866 |
return; /*already handled*/ |
866 |
return; /*already handled*/ |
867 |
} |
867 |
} |
868 |
this.__getErrorHandler(handleErrors ? handleErrors : {}).error(info); |
868 |
this.getErrorHandler(handleErrors ? handleErrors : {}).error(info); |
869 |
}, |
869 |
}, |
870 |
|
870 |
|
871 |
showTracebackDialog: function(message, statusMessage, title, hideInformVendor) { |
871 |
showTracebackDialog: function(message, statusMessage, title, hideInformVendor) { |