@deep/nest-kit
    Preparing search index...

    Class HttpExceptionFilter

    Http exception filter for NestJS It is used to correctly log all http exceptions

    // main.ts
    const { httpAdapter } = app.get(HttpAdapterHost);
    const loggerFactory = app.get(WINSTON_MODULE_FACTORY_PROVIDER);
    app.useGlobalFilters(new HttpExceptionFilter(httpAdapter, loggerFactory));
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    applicationRef: HttpServer

    Methods

    • Parameters

      • exception: HttpException
      • host: ArgumentsHost

      Returns undefined | HttpException