| Class | Description |
|---|---|
| GrpcAdviceDiscoverer |
A discovery class to find all Beans annotated with
@GrpcAdvice and for all found beans a second
search is performed looking for methods with @GrpcExceptionHandler. |
| GrpcAdviceExceptionHandler |
As part of
@GrpcAdvice, when a thrown exception is caught during gRPC calls (via global
interceptor GrpcAdviceExceptionInterceptor, then this thrown exception is being handled. |
| GrpcAdviceExceptionInterceptor |
Interceptor to use for global exception handling.
|
| GrpcAdviceExceptionListener<ReqT,RespT> |
In case an exception is thrown inside
GrpcAdviceExceptionListener.onHalfClose(), it is being handled by invoking annotated methods with
@GrpcExceptionHandler. |
| GrpcAdviceIsPresentCondition |
Condition to check if
@GrpcAdvice is present. |
| GrpcExceptionHandlerMethodResolver |
Given an annotated
@GrpcAdvice class and annotated methods with
@GrpcExceptionHandler, GrpcExceptionHandlerMethodResolver resolves given
exception type and maps it to the corresponding method to be executed, when this exception is being raised. |
| Annotation Type | Description |
|---|---|
| GrpcAdvice |
Special
@Component to declare global gRPC exception handling. |
| GrpcExceptionHandler |
Methods annotated with
@GrpcExceptionHandler are being mapped to a corresponding
Exception, by declaring either in @GrpcExceptionHandler(value = ...) as value or
as annotated methods parameter (both is working too). |