@sp-api-sdk/auth
Version:
Amazon Selling Partner API authentication package
13 lines (12 loc) • 478 B
JavaScript
import { AxiosError } from 'axios';
export class SellingPartnerApiAuthError extends AxiosError {
innerMessage;
constructor(error) {
const message = error.response
? `access-token error: Response code ${error.response.status}`
: `access-token error: No response`;
super(message, error.code, error.config, error.request, error.response);
this.innerMessage = error.message;
this.name = this.constructor.name;
}
}