UNPKG

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