Package com.google.cloud.spanner
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
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.cloud.spanner.SpannerException
SpannerException.ResourceNotFoundExceptionNested classes/interfaces inherited from class com.google.cloud.BaseServiceException
com.google.cloud.BaseServiceException.Error, com.google.cloud.BaseServiceException.ExceptionData -
Field Summary
Fields inherited from class com.google.cloud.BaseServiceException
UNKNOWN_CODE -
Method Summary
Modifier and TypeMethodDescriptionlong[]The actual update counts.long[]The expected update counts.Methods inherited from class com.google.cloud.spanner.AbortedException
isEmulatorOnlySupportsOneTransactionExceptionMethods inherited from class com.google.cloud.spanner.SpannerException
getDomain, getErrorCode, getErrorDetails, getMetadata, getReason, getRequestId, getRetryDelayInMillis, setRequestIdMethods inherited from class com.google.cloud.BaseServiceException
equals, getCode, getDebugInfo, getLocation, hashCode, isRetryable, isRetryable, isRetryable, translate, translateMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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.
-