Class SpannerErrorInterceptor (6.23.4)

public final class SpannerErrorInterceptor implements ClientInterceptor

Adds error details to statuses returned by the Cloud Spanner API. TODO(user): Add integration tests to check for error details.

Inheritance

java.lang.Object > SpannerErrorInterceptor

Implements

io.grpc.ClientInterceptor

Constructors

SpannerErrorInterceptor()

public SpannerErrorInterceptor()

Methods

<ReqT,RespT>interceptCall(MethodDescriptor<ReqT,RespT> method, CallOptions callOptions, Channel next)

public ClientCall<ReqT,RespT> <ReqT,RespT>interceptCall(MethodDescriptor<ReqT,RespT> method, CallOptions callOptions, Channel next)
Parameters
NameDescription
methodio.grpc.MethodDescriptor<ReqT,RespT>
callOptionsio.grpc.CallOptions
nextio.grpc.Channel
Returns
TypeDescription
io.grpc.ClientCall<ReqT,RespT>