cookie-pusher
Version:
Cookie-aware HTTP client based on axios and tough-cookie
14 lines (13 loc) • 407 B
JavaScript
export class AxiosError extends Error {
constructor(message, error) {
super(message);
this.name = `AxiosError`;
this.originalMessage = error.message;
this.config = error.config;
this.code = error.code;
this.request = error.request;
this.isAxiosError = error.isAxiosError;
this.toJSON = error.toJSON;
}
}
export default { AxiosError };