Class TransactionSystemException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.transaction.TransactionException
org.springframework.transaction.TransactionSystemException
- All Implemented Interfaces:
Serializable
Exception thrown when a general transaction system error is encountered,
like on commit or rollback.
- Since:
- 24.03.2003
- Author:
- Juergen Hoeller
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for TransactionSystemException.TransactionSystemException(String msg, Throwable cause) Constructor for TransactionSystemException. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn the application exception that was thrown before this transaction exception, if any.Return the exception that was the first to be thrown within the failed transaction: i.e.voidSet an application exception that was thrown before this transaction exception, preserving the original exception despite the overriding TransactionSystemException.Methods inherited from class org.springframework.core.NestedRuntimeException
getMostSpecificCause, getRootCauseMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TransactionSystemException
Constructor for TransactionSystemException.- Parameters:
msg- the detail message
-
TransactionSystemException
-
-
Method Details
-
initApplicationException
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 an application exception
-
getApplicationException
-
getOriginalException
-
contains
-