UNPKG

698 BTypeScriptView Raw
1import { Observable } from 'rxjs';
2import { ArgumentsHost } from '@nestjs/common/interfaces/features/arguments-host.interface';
3import { RpcExceptionFilterMetadata } from '@nestjs/common/interfaces/exceptions';
4import { RpcException } from './rpc-exception';
5import { BaseRpcExceptionFilter } from './base-rpc-exception-filter';
6/**
7 * @publicApi
8 */
9export declare class RpcExceptionsHandler extends BaseRpcExceptionFilter {
10 private filters;
11 handle(exception: Error | RpcException | any, host: ArgumentsHost): Observable<any>;
12 setCustomFilters(filters: RpcExceptionFilterMetadata[]): void;
13 invokeCustomFilters<T = any>(exception: T, host: ArgumentsHost): Observable<any> | null;
14}