| org.springframework.transaction.TransactionException org.springframework.transaction.TransactionSystemException
TransactionSystemException | public class TransactionSystemException extends TransactionException (Code) | | Exception thrown when a general transaction system error is encountered,
like on commit or rollback.
author: Juergen Hoeller since: 24.03.2003 |
TransactionSystemException | public TransactionSystemException(String msg)(Code) | | Constructor for TransactionSystemException.
Parameters: msg - the detail message |
TransactionSystemException | public TransactionSystemException(String msg, Throwable cause)(Code) | | Constructor for TransactionSystemException.
Parameters: msg - the detail message Parameters: cause - the root cause from the transaction API in use |
getApplicationException | final public Throwable getApplicationException()(Code) | | Return the application exception that was thrown before this transaction exception,
if any.
the application exception, or null if none set |
getOriginalException | public Throwable getOriginalException()(Code) | | 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.
the original exception, or null if there was none |
initApplicationException | public void initApplicationException(Throwable ex)(Code) | | Set an application exception that was thrown before this transaction exception,
preserving the original exception despite the overriding TransactionSystemException.
Parameters: ex - the application exception throws: IllegalStateException - if this TransactionSystemException already holds anapplication exception |
|
|