All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.scalar.db.sql.springdata.exception.ScalarDbUnknownTransactionStateException Maven / Gradle / Ivy

package com.scalar.db.sql.springdata.exception;

import javax.annotation.Nullable;

/**
 * An exception thrown from Spring Data JDBC for ScalarDB when a commit operation fails and the
 * final transaction status is unknown. Whether the transaction is actually committed or not needs
 * to be decided by the application side (e.g. check if the target record is expectedly updated)
 */
public class ScalarDbUnknownTransactionStateException extends ScalarDbNonTransientException {

  public ScalarDbUnknownTransactionStateException(String msg) {
    this(msg, null, null);
  }

  public ScalarDbUnknownTransactionStateException(
      String msg, Throwable cause, @Nullable String transactionId) {
    super(msg, cause, transactionId);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy