@nestjs/microservices
Version:
Microservices for NestJS: message and event handlers over Kafka, RabbitMQ, NATS, Redis, MQTT, gRPC or TCP.
13 lines (12 loc) • 452 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 {
private static readonly logger;
catch(exception: unknown, host: ArgumentsHost): Observable<GrpcExceptionBody>;
private serializeRpcException;
private getErrorCode;
}