Package org.springframework.transaction
Class TransactionUsageException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.core.NestedRuntimeException
- org.springframework.transaction.TransactionException
- org.springframework.transaction.TransactionUsageException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
IllegalTransactionStateException
,InvalidIsolationLevelException
,InvalidTimeoutException
,NoTransactionException
public class TransactionUsageException extends TransactionException
Superclass for exceptions caused by inappropriate usage of a Spring transaction API.- Since:
- 22.03.2003
- Author:
- Rod Johnson
- See Also:
- Serialized Form
Constructor Summary
Constructors Constructor Description TransactionUsageException(String msg)
Constructor for TransactionUsageException.TransactionUsageException(String msg, Throwable cause)
Constructor for TransactionUsageException.
Method Summary
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Constructor Detail
TransactionUsageException
public TransactionUsageException(String msg)
Constructor for TransactionUsageException.- Parameters:
msg
- the detail message
TransactionUsageException
public TransactionUsageException(String msg, Throwable cause)
Constructor for TransactionUsageException.- Parameters:
msg
- the detail messagecause
- the root cause from the transaction API in use