@documentica/webdav
Version:
Documentica Webdav Client
28 lines (27 loc) • 695 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
class Exception {
constructor(message, code) {
this.message = undefined;
this.code = undefined;
if (message !== undefined) {
this.message = message;
}
if (code !== undefined) {
this.code = code;
}
}
toString() {
return this.message;
}
;
}
exports.default = Exception;
Exception.WRONG_TYPE = 1;
Exception.NAMESPWEBDAV_ACE_TAKEN = 2;
Exception.UNEXISTING_PROPERTY = 3;
Exception.WRONG_XML = 4;
Exception.WRONG_VALUE = 5;
Exception.MISSING_REQUIRED_PARAMETER = 6;
Exception.AJAX_ERROR = 7;
Exception.NOT_IMPLEMENTED = 8;
;