Class SpannerErrorInterceptor (6.69.0)

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
Name Description
method io.grpc.MethodDescriptor<ReqT,RespT>
callOptions io.grpc.CallOptions
next io.grpc.Channel
Returns
Type Description
io.grpc.ClientCall<ReqT,RespT>