Class TransactionException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RollbackOnlyTransactionException, StaleTransactionException

public class TransactionException extends DatabaseException
Superclass of exceptions associated with a specific Transaction.
See Also:
  • Constructor Details

    • TransactionException

      public TransactionException(Transaction tx, String message)
      Constructor.
      Parameters:
      tx - the transaction
      message - exception message
      Throws:
      IllegalArgumentException - if tx is null
  • Method Details

    • getTransaction

      public Transaction getTransaction()
      Get the associated transaction.
      Returns:
      the transaction in which the error occurred