Class AbortedException

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
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AbortedDueToConcurrentModificationException, DmlBatchUpdateCountVerificationFailedException

public class AbortedException extends SpannerException
Exception thrown by Cloud Spanner when an operation detects that a transaction has aborted. This type of error has its own subclass since it is often necessary to handle aborted differently to other types of errors, most typically by retrying the transaction.
See Also:
  • Method Details

    • isEmulatorOnlySupportsOneTransactionException

      public boolean isEmulatorOnlySupportsOneTransactionException()
      Returns true if this aborted exception was returned by the emulator, and was caused by another transaction already being active on the emulator.