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

getOriginalException

@Nullable 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.

Return
the original exception, or null if there was none