ft_transcendence/pong/node_modules/@nestjs/websockets/exceptions/ws-exceptions-handler.d.ts
2023-05-02 19:15:50 +02:00

14 lines
623 B
TypeScript

import { ArgumentsHost } from '@nestjs/common';
import { ExceptionFilterMetadata } from '@nestjs/common/interfaces/exceptions/exception-filter-metadata.interface';
import { WsException } from '../errors/ws-exception';
import { BaseWsExceptionFilter } from './base-ws-exception-filter';
/**
* @publicApi
*/
export declare class WsExceptionsHandler extends BaseWsExceptionFilter {
private filters;
handle(exception: Error | WsException | any, host: ArgumentsHost): void;
setCustomFilters(filters: ExceptionFilterMetadata[]): void;
invokeCustomFilters<T = any>(exception: T, args: ArgumentsHost): boolean;
}