org.springframework.transaction |
Exception hierarchy for Spring's transaction infrastructure,
independent of any specific transaction management system.
Contains transaction manager, definition, and status interfaces.
|
Java Source File Name | Type | Comment |
CannotCreateTransactionException.java | Class | Exception thrown when a transaction can't be created using an
underlying transaction API such as JTA. |
HeuristicCompletionException.java | Class | Exception that represents a transaction failure caused by a heuristic
decision on the side of the transaction coordinator. |
IllegalTransactionStateException.java | Class | Exception thrown when the existence or non-existence of a transaction
amounts to an illegal state according to the transaction propagation
behavior that applies. |
InvalidIsolationLevelException.java | Class | Exception that gets thrown when an invalid isolation level is specified,
i.e. |
InvalidTimeoutException.java | Class | Exception that gets thrown when an invalid timeout is specified,
that is, the specified timeout valid is out of range or the
transaction manager implementation doesn't support timeouts. |
NestedTransactionNotSupportedException.java | Class | Exception thrown when attempting to work with a nested transaction
but nested transactions are not supported by the underlying backend. |
NoTransactionException.java | Class | Exception thrown when an operation is attempted that
relies on an existing transaction (such as setting
rollback status) and there is no existing transaction. |
PlatformTransactionManager.java | Interface | This is the central interface in Spring's transaction infrastructure.
Applications can use this directly, but it is not primarily meant as API:
Typically, applications will work with either TransactionTemplate or
declarative transaction demarcation through AOP.
For implementors, it is recommended to derive from the provided
org.springframework.transaction.support.AbstractPlatformTransactionManager class, which pre-implements the defined propagation behavior and takes care
of transaction synchronization handling. |
SavepointManager.java | Interface | Interface that specifies an API to programmatically manage transaction
savepoints in a generic fashion. |
TransactionDefinition.java | Interface | Interface that defines Spring-compliant transaction properties.
Based on the propagation behavior definitions analogous to EJB CMT attributes.
Note that isolation level and timeout settings will not get applied unless
an actual new transaction gets started. |
TransactionException.java | Class | Superclass for all transaction exceptions. |
TransactionStatus.java | Interface | Representation of the status of a transaction.
Transactional code can use this to retrieve status information,
and to programmatically request a rollback (instead of throwing
an exception that causes an implicit rollback).
Derives from the SavepointManager interface to provide access
to savepoint management facilities. |
TransactionSuspensionNotSupportedException.java | Class | Exception thrown when attempting to suspend an existing transaction
but transaction suspension is not supported by the underlying backend. |
TransactionSystemException.java | Class | Exception thrown when a general transaction system error is encountered,
like on commit or rollback. |
TransactionTimedOutException.java | Class | Exception to be thrown when a transaction has timed out.
Thrown by Spring's local transaction strategies if the deadline
for a transaction has been reached when an operation is attempted,
according to the timeout specified for the given transaction.
Beyond such checks before each transactional operation, Spring's
local transaction strategies will also pass appropriate timeout values
to resource operations (for example to JDBC Statements, letting the JDBC
driver respect the timeout). |
TransactionUsageException.java | Class | Superclass for exceptions caused by inappropriate usage of
a Spring transaction API. |
UnexpectedRollbackException.java | Class | Thrown when an attempt to commit a transaction resulted
in an unexpected rollback. |