UNPKG

623 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';
5/**
6 * @publicApi
7 */
8export declare class WsExceptionsHandler extends BaseWsExceptionFilter {
9 private filters;
10 handle(exception: Error | WsException | any, host: ArgumentsHost): void;
11 setCustomFilters(filters: ExceptionFilterMetadata[]): void;
12 invokeCustomFilters<T = any>(exception: T, args: ArgumentsHost): boolean;
13}