UNPKG

@webxsid/nest-exception

Version:

A centralized exception handling module for NestJS applications. It provides structured error management, logging, and automatic exception handling.

18 lines 715 B
import { ArgumentsHost, ExceptionFilter, LoggerService } from '@nestjs/common'; import { ExceptionHandlerService } from '../exception-handler'; export interface AppErrorResponse { statusCode: number; errorCode: string; message: string; path: string; timestamp: string; trace?: string | string[]; } export declare class AppExceptionFilter implements ExceptionFilter { private readonly isDev; private readonly logger; private readonly exceptionHandlerService; constructor(isDev: boolean, logger: LoggerService | null, exceptionHandlerService: ExceptionHandlerService); catch(exception: Error, host: ArgumentsHost): void; } //# sourceMappingURL=app-exception.filter.d.ts.map