std::nested_exception::nested_exception
ja.cppreference.net より
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に格納されている例外でオブジェクトを初期化します。 パラメータ
| other | - | 内容の初期化に使用するネストされた例外 |