java.lang.Object | ||||||
↳ | java.lang.Throwable | |||||
↳ | java.lang.Exception | |||||
↳ | java.lang.RuntimeException | |||||
↳ | org.springframework.core.NestedRuntimeException | |||||
↳ | org.springframework.transaction.TransactionException | |||||
↳ | org.springframework.transaction.TransactionSystemException |
Exception thrown when a general transaction system error is encountered, like on commit or rollback.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor for TransactionSystemException.
| |||||||||||
Constructor for TransactionSystemException.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Check whether this exception contains an exception of the given type:
either it is of the given class itself or it contains a nested cause
of the given type.
| |||||||||||
Return the application exception that was thrown before this transaction exception,
if any.
| |||||||||||
Return the exception that was the first to be thrown within the failed transaction:
i.e.
| |||||||||||
Set an application exception that was thrown before this transaction exception,
preserving the original exception despite the overriding TransactionSystemException.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.core.NestedRuntimeException
| |||||||||||
From class
java.lang.Throwable
| |||||||||||
From class
java.lang.Object
|
Constructor for TransactionSystemException.
msg | the detail message |
---|
Constructor for TransactionSystemException.
msg | the detail message |
---|---|
cause | the root cause from the transaction API in use |
Check whether this exception contains an exception of the given type: either it is of the given class itself or it contains a nested cause of the given type.
exType | the exception type to look for |
---|
Return the application exception that was thrown before this transaction exception, if any.
null
if none set
Return the exception that was the first to be thrown within the failed transaction: i.e. the application exception, if any, or the TransactionSystemException's own cause.
null
if there was none
Set an application exception that was thrown before this transaction exception, preserving the original exception despite the overriding TransactionSystemException.
ex | the application exception |
---|
IllegalStateException | if this TransactionSystemException already holds an application exception |
---|