@odata2ts/http-client-axios
Version:
Axios based odata HTTP client consumable by odata2ts
16 lines • 625 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AxiosClientError = void 0;
class AxiosClientError extends Error {
constructor(msg, status, headers, cause, axiosError) {
// @ts-ignore: fetch requires lib "dom" or "webworker", but then the "cause" property becomes unknown to TS
super(msg, { cause });
this.status = status;
this.headers = headers;
this.cause = cause;
this.axiosError = axiosError;
this.name = this.constructor.name;
}
}
exports.AxiosClientError = AxiosClientError;
//# sourceMappingURL=AxiosClientError.js.map