Namespaces
Variants

std::nested_exception:: nested_exception

From cppreference.net
Utilities library
nested_exception ( ) noexcept ;
(1) (自 C++11 起)
(自 C++26 起为 constexpr)
nested_exception ( const nested_exception & other ) noexcept = default ;
(2) (自 C++11 起)
(自 C++26 起为 constexpr)

构造新的 nested_exception 对象。

1) 默认构造函数。通过调用 std:: current_exception ( ) 获取异常对象,并将其存储于新创建的 nested_exception 对象中。
2) 复制构造函数。使用存储在 other 中的异常初始化对象。

参数

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