Class OracleTransactionPriorityException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.micronaut.transaction.exceptions.TransactionException
io.micronaut.transaction.exceptions.TransactionSystemException
io.micronaut.transaction.exceptions.OracleTransactionPriorityException
- All Implemented Interfaces:
Serializable
Thrown when Oracle automatically rolls back a transaction because it was
blocking a transaction with a higher priority.
Oracle reports this condition with ORA-63300 while the statement that caused the rollback is executing and with ORA-63302 for subsequent statements until the session acknowledges the rollback.
- Since:
- 5.2
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intOracle automatically rolled back a transaction blocking higher-priority work.static final intOracle requires the session to acknowledge a priority rollback. -
Constructor Summary
ConstructorsConstructorDescriptionOracleTransactionPriorityException(String message) OracleTransactionPriorityException(String message, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisPriorityRollback(Throwable exception) Tests whether an exception contains an Oracle priority-rollback error.Methods inherited from class TransactionSystemException
getApplicationException, getOriginalException, initApplicationExceptionMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
ORA_TRANSACTION_AUTOMATICALLY_ROLLED_BACK
public static final int ORA_TRANSACTION_AUTOMATICALLY_ROLLED_BACKOracle automatically rolled back a transaction blocking higher-priority work.- See Also:
-
ORA_TRANSACTION_MUST_ROLLBACK
public static final int ORA_TRANSACTION_MUST_ROLLBACKOracle requires the session to acknowledge a priority rollback.- See Also:
-
-
Constructor Details
-
OracleTransactionPriorityException
- Parameters:
message- The detail message
-
OracleTransactionPriorityException
-
-
Method Details
-
isPriorityRollback
Tests whether an exception contains an Oracle priority-rollback error. Database drivers can expose the error as a nested cause or as a chainedSQLException, so both forms are checked.- Parameters:
exception- The exception to inspect- Returns:
trueif ORA-63300 or ORA-63302 is present
-