@marxlnfcs/wildduck-api
Version:
Provides a client to interact with the wildduck api
19 lines (18 loc) • 613 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.WildduckException = void 0;
class WildduckException extends Error {
constructor(url, status, statusMessage, error, stack) {
super(error === null || error === void 0 ? void 0 : error.error);
this.url = url;
this.status = status;
this.statusMessage = statusMessage;
this.error = error.error;
this.code = error.code;
this.details = error.details || {};
if (stack) {
this.stack = stack;
}
}
}
exports.WildduckException = WildduckException;