Class DmlBatchUpdateCountVerificationFailedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.google.cloud.BaseServiceException
com.google.cloud.grpc.BaseGrpcServiceException
com.google.cloud.spanner.SpannerException
com.google.cloud.spanner.AbortedException
com.google.cloud.spanner.DmlBatchUpdateCountVerificationFailedException
All Implemented Interfaces:
Serializable

public class DmlBatchUpdateCountVerificationFailedException extends AbortedException
Exception thrown by a Connection when an automatic DML batch detects that one or more of the update counts that it returned during the buffering of DML statements does not match with the actual update counts that were returned after execution.
See Also:
  • Method Details

    • getExpected

      public long[] getExpected()
      The expected update counts. These were returned to the client application when the DML statements were buffered.
    • getActual

      public long[] getActual()
      The actual update counts. These were returned by Spanner to the client when the DML statements were actually executed, and are the update counts that the client application would have received if auto-batching had not been enabled.