UNPKG

528 BTypeScriptView Raw
1import { ArgumentsHost, WsExceptionFilter } from '@nestjs/common';
2export declare class BaseWsExceptionFilter<TError = any> implements WsExceptionFilter<TError> {
3 private static readonly logger;
4 catch(exception: TError, host: ArgumentsHost): void;
5 handleError<TClient extends {
6 emit: Function;
7 }>(client: TClient, exception: TError): void;
8 handleUnknownError<TClient extends {
9 emit: Function;
10 }>(exception: TError, client: TClient): void;
11 isExceptionObject(err: any): err is Error;
12}