Annotation Type GRpcExceptionHandler
-
@Target(METHOD) @Retention(RUNTIME) @Documented public @interface GRpcExceptionHandlerMarks the annotated method eligible for handling the specific exception type. The signature of the method HAS to be as follows:
Status handlerName(Exception type,GRpcExceptionScope scope)
, example:
public io.grpc.Status handlerName(MyCustomException ex,GRpcExceptionScope scope){ ... }