@congminh1254/shopee-sdk
Version:
Shopee SDK maintaining by community
15 lines • 418 B
JavaScript
export class ShopeeSdkError extends Error {
constructor(message) {
super(message);
this.name = "ShopeeSdkError";
}
}
export class ShopeeApiError extends Error {
constructor(status, data) {
super(`API Error: ${status} - ${JSON.stringify(data)}`);
this.name = "ShopeeApiError";
this.status = status;
this.data = data;
}
}
//# sourceMappingURL=errors.js.map