UNPKG

601 BTypeScriptView Raw
1import { ArgumentsHost } from '@nestjs/common';
2import { ExceptionFilterMetadata } from '@nestjs/common/interfaces/exceptions/exception-filter-metadata.interface';
3import { WsException } from '../errors/ws-exception';
4import { BaseWsExceptionFilter } from './base-ws-exception-filter';
5export declare class WsExceptionsHandler extends BaseWsExceptionFilter {
6 private filters;
7 handle(exception: Error | WsException | any, host: ArgumentsHost): void;
8 setCustomFilters(filters: ExceptionFilterMetadata[]): void;
9 invokeCustomFilters<T = any>(exception: T, args: ArgumentsHost): boolean;
10}