public class TransactionSystemException extends TransactionException
| Constructor and Description |
|---|
TransactionSystemException(java.lang.String msg)
Constructor for TransactionSystemException.
|
TransactionSystemException(java.lang.String msg,
java.lang.Throwable cause)
Constructor for TransactionSystemException.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getMessage, getMostSpecificCause, getRootCausepublic TransactionSystemException(java.lang.String msg)
msg - the detail messagepublic TransactionSystemException(java.lang.String msg,
java.lang.Throwable cause)
msg - the detail messagecause - the root cause from the transaction API in usepublic void initApplicationException(java.lang.Throwable ex)
ex - the application exceptionjava.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