Package com.google.cloud.spanner.spi.v1
Class SpannerErrorInterceptor
java.lang.Object
com.google.cloud.spanner.spi.v1.SpannerErrorInterceptor
- All Implemented Interfaces:
io.grpc.ClientInterceptor
Adds error details to statuses returned by the Cloud Spanner API. TODO(user): Add integration
tests to check for error details.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<ReqT,
RespT>
io.grpc.ClientCall<ReqT,RespT> interceptCall
(io.grpc.MethodDescriptor<ReqT, RespT> method, io.grpc.CallOptions callOptions, io.grpc.Channel next)
-
Constructor Details
-
SpannerErrorInterceptor
public SpannerErrorInterceptor()
-
-
Method Details
-
interceptCall
public <ReqT,RespT> io.grpc.ClientCall<ReqT,RespT> interceptCall(io.grpc.MethodDescriptor<ReqT, RespT> method, io.grpc.CallOptions callOptions, io.grpc.Channel next) - Specified by:
interceptCall
in interfaceio.grpc.ClientInterceptor
-