Class CrdbTransactionRetryException

  • All Implemented Interfaces:
    java.io.Serializable

    public class CrdbTransactionRetryException
    extends OptimisticLockingException
    Exception that is thrown when an optimistic locking error occurs in CockroachDB, caused by concurrent access to the same data entries by multiple transactions. CockroachDB optimistic locking errors can't be handled in application code, so the transaction must be rolled back and the involved commands retried.
    See Also:
    Serialized Form
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CrdbTransactionRetryException

        public CrdbTransactionRetryException​(java.lang.String message)
      • CrdbTransactionRetryException

        public CrdbTransactionRetryException​(java.lang.String message,
                                             java.lang.Throwable throwable)