Class SpannerErrorInterceptor

java.lang.Object
com.google.cloud.spanner.spi.v1.SpannerErrorInterceptor
All Implemented Interfaces:
io.grpc.ClientInterceptor

public final class SpannerErrorInterceptor extends Object implements 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 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 interface io.grpc.ClientInterceptor