"Transaction timed out: " + e.getMessage(), e);
} else if (errorCode == XA_RBDEADLOCK) {
throw new TransactionConflictException(
"Transaction conflict: " + e.getMessage(), e);
} else if (errorCode >= XA_RBBASE && errorCode <= XA_RBEND) {
throw new TransactionAbortedException(
"Transaction aborted: " + e.getMessage(), e);
}
}
throw new DbDatabaseException(
"Unexpected database exception: " + e, e);