spring-framework / org.springframework.transaction / TransactionSystemException / initApplicationException

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.

Parameters

ex - the application exception

Exceptions

IllegalStateException - if this TransactionSystemException already holds an application exception