You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/service/exceptionhandling/GrpcExceptionHandler.java
+46-4Lines changed: 46 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -24,18 +24,60 @@
24
24
importjava.lang.annotation.Target;
25
25
26
26
/**
27
-
* TODO..
27
+
* Methods annotated with {@link GrpcExceptionHandler @GrpcExceptionHandler} are being mapped to a corresponding
28
+
* Exception, by declaring either in {@link GrpcExceptionHandler#value() @GrpcExceptionHandler(value = ...)} as value or
29
+
* as annotated methods parameter (both is working too).
30
+
* <p>
31
+
* Return type of annotated methods has to be of type {@link Throwable} or {@link io.grpc.Status}, the latter is wrapped
32
+
* up later as {@link io.grpc.StatusRuntimeException}. For more detailed information
Copy file name to clipboardExpand all lines: grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/service/exceptionhandling/GrpcExceptionHandlerMethodResolver.java
Copy file name to clipboardExpand all lines: grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/service/exceptionhandling/GrpcServiceAdvice.java
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -26,9 +26,14 @@
26
26
importorg.springframework.stereotype.Component;
27
27
28
28
/**
29
-
* Special {@link Component @Component} to declare GrpcException Handling.
29
+
* Special {@link Component @Component} to declare {@link GrpcExceptionHandler GrpcException Handling}.
0 commit comments