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/advice/GrpcExceptionHandlerMethodResolver.java
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,8 @@
17
17
18
18
packagenet.devh.boot.grpc.server.advice;
19
19
20
+
importstaticjava.util.Objects.requireNonNull;
21
+
20
22
importjava.lang.reflect.Method;
21
23
importjava.util.AbstractMap.SimpleImmutableEntry;
22
24
importjava.util.Arrays;
@@ -30,12 +32,11 @@
30
32
importorg.springframework.lang.NonNull;
31
33
importorg.springframework.util.Assert;
32
34
33
-
importlombok.extern.slf4j.Slf4j;
34
-
35
35
/**
36
36
* Given an annotated {@link GrpcAdvice @GrpcAdvice} class and annotated methods with
37
37
* {@link GrpcExceptionHandler @GrpcExceptionHandler}, {@link GrpcExceptionHandlerMethodResolver} resolves given
38
38
* exception type and maps it to the corresponding method to be executed, when this exception is being raised.
39
+
*
39
40
* <p>
40
41
* For an example how to make use of it, please have a look at {@link GrpcExceptionHandler @GrpcExceptionHandler}.
0 commit comments