| Modifier and Type | Field and Description |
|---|---|
| private Throwable |
| Access | Constructor and Description |
|---|---|
| public | |
| public | TransactionSystemException(String
the detail message msg, Throwable the root cause from the transaction API in use cause)Constructor for TransactionSystemException. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | contains(Class<?>
the exception type to look for exType)Overrides org. 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. |
| public final Throwable | Returns: the application exception, ornull if none setReturn the application exception that was thrown before this transaction exception, if any. |
| public Throwable | Returns: the original exception, ornull if there was noneReturn 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. |
| public void | initApplicationException(Throwable
the application exception ex)Set an application exception that was thrown before this transaction exception, preserving the original exception despite the overriding TransactionSystemException. |
| applicationException | back to summary |
|---|---|
| private Throwable applicationException
| |
| TransactionSystemException | back to summary |
|---|---|
| public TransactionSystemException(String msg) Constructor for TransactionSystemException.
| |
| TransactionSystemException | back to summary |
|---|---|
| public TransactionSystemException(String msg, Throwable cause) Constructor for TransactionSystemException. | |
| contains | back to summary |
|---|---|
| public boolean contains(Class<?> exType) Overrides org. Doc from org. 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. | |
| getApplicationException | back to summary |
|---|---|
| public final Throwable getApplicationException() Return the application exception that was thrown before this transaction exception, if any. | |
| getOriginalException | back to summary |
|---|---|
| public Throwable getOriginalException() 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. | |
| initApplicationException | back to summary |
|---|---|
| public void initApplicationException(Throwable ex) Set an application exception that was thrown before this transaction exception, preserving the original exception despite the overriding TransactionSystemException.
| |