定义于头文件
<stdexcept>
|
||
template< class T >
class tx_exception : public std::runtime_error; |
(TM TS) | |
定义能用于取消并回滚关键词 atomic_cancel 所初始化的原子事务的异常类型。
若 T
不可平凡复制 (TriviallyCopyable
) ,则特化 std::tx_exception<T>
的程序为病式。
目录 |
explicit tx_exception( T value ) transaction_safe;
|
(1) | |
tx_exception( T value, const std::string& what_arg ) transaction_safe;
|
(2) | |
tx_exception( T value, const char* what_arg ) transaction_safe;
|
(3) | |
以 what_arg
为能通过 what() 访问的解释性字符串并以 value
为能通过 get() 访问的对象构造异常对象。
value | - | 载荷对象 |
what_arg | - | 解释性字符串 |
(无)
T get() const transaction_safe;
|
||
返回异常对象保有的载荷对象。
(无)
[虚]
|
析构该异常对象 ( std::exception 的虚公开成员函数)
|
[虚]
|
返回解释性字符串 ( std::exception 的虚公开成员函数)
|