@edgestore/shared
Version:
Upload files with ease from React/Next.js
15 lines (10 loc) • 374 B
text/typescript
import { type EdgeStoreJsonResponse } from './EdgeStoreError';
export class EdgeStoreApiClientError extends Error {
public readonly data: EdgeStoreJsonResponse;
constructor(opts: { response: EdgeStoreJsonResponse }) {
super(opts.response.message);
this.name = 'EdgeStoreApiClientError';
this.data = opts.response;
}
}
export * from './EdgeStoreError';