Namespaces
Variants

std::nested_exception::nested_exception

来自 zh.cppreference.net
 
 
 
 
 
nested_exception() noexcept;
(1) (since C++11)
(constexpr since C++26)
nested_exception( const nested_exception& other ) noexcept = default;
(2) (since C++11)
(constexpr since C++26)

构造新的nested_exception对象。

1) 默认构造函数。存储通过调用std::current_exception()获得的异常对象到新的nested_exception对象中。
2) 复制构造函数。用存储在other中的异常初始化对象。

参数

其他 - 用于初始化内容的嵌套异常