@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.
22 lines (21 loc) • 1.44 kB
TypeScript
import { ContextCreator } from '../helpers/context-creator.js';
import { NestContainer } from '../injector/container.js';
import { type InstancePerContext, InstanceWrapper } from '../injector/instance-wrapper.js';
import type { Type, ExceptionFilter } from '@nestjs/common';
export declare class BaseExceptionFilterContext extends ContextCreator {
private readonly container;
protected moduleContext: string;
constructor(container: NestContainer);
createConcreteContext<T extends any[], R extends any[]>(metadata: T, contextId?: import("../injector/instance-wrapper.js").ContextId, inquirerId?: string): R;
getFilterInstance(filter: Function | ExceptionFilter, contextId?: import("../injector/instance-wrapper.js").ContextId, inquirerId?: string): ExceptionFilter | null;
/**
* A filter class that has not been instantiated in a context (or for an
* inquirer) is represented there by an object created from its prototype,
* e.g. a request-scoped filter of a controller that failed to resolve for
* the request. Its "catch()" would run without its constructor having been
* called, i.e. without its dependencies.
*/
protected isInstantiated(instanceWrapper: InstanceWrapper, instanceHost: InstancePerContext<unknown>): boolean;
getInstanceByMetatype(metatype: Type<unknown>): InstanceWrapper | undefined;
reflectCatchExceptions(instance: ExceptionFilter): Type<any>[];
}