UNPKG

@dev-abhi/errorify

Version:

A utility package for simplified error handling and management in Node.js applications.

13 lines 403 B
export type ErrorDetails = { [key: string]: any; } | null; export declare class CustomError<T = ErrorDetails> extends Error { statusCode: number; errorCode?: string; details?: T; includeStackTrace: boolean; stackTrace?: string; constructor(message?: string, statusCode?: number, errorCode?: string, details?: T); toJSON(): any; } //# sourceMappingURL=CustomError.d.ts.map