public class TransactionSystemException extends TransactionException
Constructor and Description |
---|
TransactionSystemException(String msg)
Constructor for TransactionSystemException.
|
TransactionSystemException(String msg,
Throwable cause)
Constructor for TransactionSystemException.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Class<?> exType) |
Throwable |
getApplicationException()
Return the application exception that was thrown before this transaction exception,
if any.
|
Throwable |
getOriginalException()
Return the exception that was the first to be thrown within the failed transaction:
i.e.
|
void |
initApplicationException(Throwable ex)
Set an application exception that was thrown before this transaction exception,
preserving the original exception despite the overriding TransactionSystemException.
|
getMessage, getMostSpecificCause, getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public TransactionSystemException(String msg)
msg
- the detail messagepublic void initApplicationException(Throwable ex)
ex
- the application exceptionIllegalStateException
- if this TransactionSystemException already holds an
application exception@Nullable public final Throwable getApplicationException()
null
if none set@Nullable public Throwable getOriginalException()
null
if there was nonepublic boolean contains(@Nullable Class<?> exType)
contains
in class org.springframework.core.NestedRuntimeException