UNPKG

@minimaltech/ra-infra

Version:

Minimal Technology ReactJS Infrastructure

19 lines (18 loc) 490 B
export declare class ApplicationError extends Error { statusCode: number; messageCode?: string; payload?: any; constructor(opts: { statusCode?: number; messageCode?: string; message: string; payload?: any; }); } export declare const getError: (opts: { statusCode?: number; messageCode?: string; message: string; payload?: any; }) => ApplicationError; export declare const getClientError: (e: unknown) => ApplicationError;