首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::tx_exception

Defined in header <stdexcept>

template< class T > class tx_exception : public std::runtime_error;

(TM TS)

定义可用于取消和回滚由关键字发起的原子事务的异常类型。atomic_cancel...

如果T不是TriviallyCopyable,专门的程序std::tx_exception<T>是畸形的。

成员函数

性病:TX[医]例外:TX[医]例外

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

-

payload object

what_arg

-

explanatory string

例外

%280%29

性病:TX[医]例外:GET

T get() const transaction_safe;

返回异常对象持有的有效负载对象。

例外

%280%29

继承自STD::运行时[医]误差

继承自STD:例外

成员函数

(destructor) virtual

destructs the exception object (virtual public member function of std::exception)

what virtual

returns an explanatory string (virtual public member function of std::exception)

代码语言:txt
复制
 © cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券