@nestjs/microservices
Version:
Nest - modern, fast, powerful node.js web framework (@microservices)
12 lines (11 loc) • 416 B
TypeScript
import { type ArgumentsHost, type RpcExceptionFilter } from '@nestjs/common';
import { Observable } from 'rxjs';
import { type GrpcExceptionBody } from './grpc-exception.js';
/**
* @publicApi
*/
export declare class GrpcExceptionFilter implements RpcExceptionFilter {
catch(exception: unknown, host: ArgumentsHost): Observable<GrpcExceptionBody>;
private serializeRpcException;
private getErrorCode;
}