RpcExceptionFilter

Interface describing implementation of an RPC exception filter.


interface RpcExceptionFilter<T = any, R = any> {
  catch(exception: T, host: ArgumentsHost): Observable<R>
}

See also

Methods

catch()

Method to implement a custom (microservice) exception filter.


catch(exception: T, host: ArgumentsHost): Observable<R>

Parameters

Option Type Description
exception T

the type (class) of the exception being handled

host ArgumentsHost

used to access an array of arguments for the in-flight message

Returns

Observable<R>