UNPKG

@slsplus/ui

Version:
21 lines (20 loc) 482 B
export interface ApiErrorOptions { type: string; message: string; stack?: string; reqId?: string; displayMsg?: string; code?: string | number; } export interface ApiErrorInstance extends Error { type: string; message: string; stack: string; reqId: string; displayMsg: string; code: string | number; } declare class ApiError { constructor({ type, message, stack, reqId, displayMsg, code }: ApiErrorOptions); } export { ApiError };