Annotation Interface GRpcExceptionHandler


@Target(METHOD) @Retention(RUNTIME) @Documented public @interface GRpcExceptionHandler
Marks 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){
     ...
   }
 
See Also:
GRpcServiceAdvice, GRpcRuntimeExceptionWrapper, GRpcExceptionScope