UNPKG

@webxsid/nest-exception

Version:

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

17 lines 678 B
import { HttpException } from '@nestjs/common'; import { ExceptionRegistryService } from '../exception-registry'; export declare class AppException extends HttpException { private static errorRegistryService?; private static isDevMode; readonly code: string; readonly trace?: string; readonly statusCode: number; constructor(errorOrCode: string, trace?: string); static init(errorRegistryService: ExceptionRegistryService, isDev: boolean): void; private static getErrorRegistry; private static getError; private static getStatus; private static getCode; private static createResponse; } //# sourceMappingURL=app-exception.d.ts.map