@nestjs/core
Version:
The core of NestJS, a TypeScript framework for Node.js backends: modules, dependency injection and the request pipeline, on Express, Fastify or node:http.
23 lines (22 loc) • 1.4 kB
TypeScript
import { type HttpServer } from '@nestjs/common';
import { ApplicationConfig } from '../application-config.js';
import { BaseExceptionFilterContext } from '../exceptions/base-exception-filter-context.js';
import { ExceptionsHandler } from '../exceptions/exceptions-handler.js';
import { NestContainer } from '../injector/container.js';
import { RouterProxyCallback } from './router-proxy.js';
import { type Controller } from '@nestjs/common/internal';
export declare class RouterExceptionFilters extends BaseExceptionFilterContext {
private readonly config;
private readonly applicationRef;
private static readonly logger;
private static readonly warnedConfigs;
constructor(container: NestContainer, config: ApplicationConfig, applicationRef: HttpServer);
create(instance: Controller, callback: RouterProxyCallback, moduleKey: string | undefined, contextId?: import("../injector/instance-wrapper.js").ContextId, inquirerId?: string): ExceptionsHandler;
getGlobalMetadata<T extends unknown[]>(contextId?: import("../injector/instance-wrapper.js").ContextId, inquirerId?: string): T;
/**
* Handlers that are not built for a controller (middleware, the "not found"
* handler, the exception layer) have no request to resolve request-scoped
* or transient global filters for, so these filters are left out.
*/
private warnAboutScopedGlobalFilters;
}