Package io.permazen.core
Class TransactionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.permazen.core.DatabaseException
io.permazen.core.TransactionException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
RollbackOnlyTransactionException
,StaleTransactionException
Superclass of exceptions associated with a specific
Transaction
.- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TransactionException
Constructor.- Parameters:
tx
- the transactionmessage
- exception message- Throws:
IllegalArgumentException
- iftx
is null
-
-
Method Details
-
getTransaction
Get the associated transaction.- Returns:
- the transaction in which the error occurred
-