public class GrpcAdviceExceptionInterceptor extends Object implements ServerInterceptor
Throwable
is caught and being processed.
Actual processing of exception is in GrpcAdviceExceptionListener
.
Constructor and Description |
---|
GrpcAdviceExceptionInterceptor(GrpcAdviceExceptionHandler grpcAdviceExceptionHandler) |
Modifier and Type | Method and Description |
---|---|
<ReqT,RespT> |
interceptCall(ServerCall<ReqT,RespT> call,
Metadata headers,
ServerCallHandler<ReqT,RespT> next) |
protected <ReqT> ServerCall.Listener<ReqT> |
noOpCallListener()
Creates a new no-op call listener because you can neither return null nor throw an exception in
interceptCall(ServerCall, Metadata, ServerCallHandler) . |
public GrpcAdviceExceptionInterceptor(GrpcAdviceExceptionHandler grpcAdviceExceptionHandler)
public <ReqT,RespT> ServerCall.Listener<ReqT> interceptCall(ServerCall<ReqT,RespT> call, Metadata headers, ServerCallHandler<ReqT,RespT> next)
interceptCall
in interface ServerInterceptor
protected <ReqT> ServerCall.Listener<ReqT> noOpCallListener()
interceptCall(ServerCall, Metadata, ServerCallHandler)
.ReqT
- The type of the request.