类 NoTransactionException
- 所有已实现的接口:
Serializable
public class NoTransactionException extends TransactionUsageException
Exception thrown when an operation is attempted that relies on an existing transaction (such as setting rollback status) and there is no existing transaction. This represents an illegal usage of the transaction API.- 从以下版本开始:
- 17.03.2003
- 作者:
- Rod Johnson
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 NoTransactionException(String msg)
Constructor for NoTransactionException.NoTransactionException(String msg, Throwable cause)
Constructor for NoTransactionException.
方法概要
从类继承的方法 org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
构造器详细资料
NoTransactionException
public NoTransactionException(String msg)
Constructor for NoTransactionException.- 参数:
msg
- the detail message
NoTransactionException
public NoTransactionException(String msg, Throwable cause)
Constructor for NoTransactionException.- 参数:
msg
- the detail messagecause
- the root cause from the transaction API in use