Class TransactionException

All Implemented Interfaces:
Serializable

@AvailableSince("1.0") public class TransactionException extends RuntimeException
Base unchecked exception for all transaction-related errors.

Thrown by Transaction.commit() when transaction execution fails due to validation errors, insufficient funds, concurrency conflicts, or persistence failures.

Error Types

Usage Example


 try {
   TransactionResult result = transaction.commit().join();
 } catch (TransactionException e) {
   ErrorType type = e.getErrorType();
   // Handle error based on type
 }
 
Since:
1.0
See Also: