Working on new Zabbix API service.

This commit is contained in:
Alexander Zobnin
2016-01-23 14:43:06 +03:00
parent bc52687bca
commit 51b0a7a0eb
4 changed files with 249 additions and 656 deletions

View File

@@ -86,12 +86,12 @@ function (angular) {
// Define zabbix API exception type
function ZabbixException(error) {
this.code = error.code;
this.message = error.message;
this.data = error.data;
this.errorType = error.message;
this.message = error.data;
}
ZabbixException.prototype.toString = function() {
return this.name + " " + this.message;
return this.errorType + ": " + this.message;
};
});