|
spring-tx | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.transaction.TransactionException
org.springframework.transaction.TransactionSystemException
public class TransactionSystemException
Exception thrown when a general transaction system error is encountered, like on commit or rollback.
| Constructor Summary | |
|---|---|
TransactionSystemException(java.lang.String msg)
Constructor for TransactionSystemException. |
|
TransactionSystemException(java.lang.String msg,
java.lang.Throwable cause)
Constructor for TransactionSystemException. |
|
| Method Summary | |
|---|---|
boolean |
contains(java.lang.Class exType)
|
java.lang.Throwable |
getApplicationException()
Return the application exception that was thrown before this transaction exception, if any. |
java.lang.Throwable |
getOriginalException()
Return the exception that was the first to be thrown within the failed transaction: i.e. |
void |
initApplicationException(java.lang.Throwable ex)
Set an application exception that was thrown before this transaction exception, preserving the original exception despite the overriding TransactionSystemException. |
| Methods inherited from class org.springframework.core.NestedRuntimeException |
|---|
getMessage, getMostSpecificCause, getRootCause |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TransactionSystemException(java.lang.String msg)
msg - the detail message
public TransactionSystemException(java.lang.String msg,
java.lang.Throwable cause)
msg - the detail messagecause - the root cause from the transaction API in use| Method Detail |
|---|
public void initApplicationException(java.lang.Throwable ex)
ex - the application exception
java.lang.IllegalStateException - if this TransactionSystemException already holds an
application exceptionpublic final java.lang.Throwable getApplicationException()
null if none setpublic java.lang.Throwable getOriginalException()
null if there was nonepublic boolean contains(java.lang.Class exType)
contains in class org.springframework.core.NestedRuntimeException
|
spring-tx | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||