UNPKG

@nestjs/core

Version:

Nest - modern, fast, powerful node.js web framework (@core)

11 lines (10 loc) 498 B
import { ArgumentsHost, ExceptionFilter, HttpServer } from '@nestjs/common'; import { HttpAdapterHost } from '../helpers'; export declare class BaseExceptionFilter<T = any> implements ExceptionFilter<T> { protected readonly applicationRef?: HttpServer; private static readonly logger; protected readonly httpAdapterHost?: HttpAdapterHost; constructor(applicationRef?: HttpServer); catch(exception: T, host: ArgumentsHost): void; isExceptionObject(err: any): err is Error; }