Class 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 Detail

      • SpannerErrorInterceptor

        public SpannerErrorInterceptor()
    • Method Detail

      • 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