spring-framework / org.springframework.transaction / TransactionSystemException

TransactionSystemException

open class TransactionSystemException : TransactionException

Exception thrown when a general transaction system error is encountered, like on commit or rollback.

Author
Juergen Hoeller

Since
24.03.2003

Constructors

<init>

TransactionSystemException(msg: String)
TransactionSystemException(msg: String, cause: Throwable)

Constructor for TransactionSystemException.

Functions

contains

open fun contains(exType: Class<*>): Boolean

getApplicationException

fun getApplicationException(): Throwable

Return the application exception that was thrown before this transaction exception, if any.

getOriginalException

open fun getOriginalException(): Throwable

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

open fun initApplicationException(ex: Throwable): Unit

Set an application exception that was thrown before this transaction exception, preserving the original exception despite the overriding TransactionSystemException.