Namespaces
Variants
Actions

std::nested_exception::rethrow_nested

From cppreference.com
< cpp‎ | error‎ | nested exception
Revision as of 19:42, 3 May 2025 by Space Mission (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 
 
 
 
 
[[noreturn]] void rethrow_nested() const;
(since C++11)
(constexpr since C++26)

Rethrows the stored exception. If there is no stored exceptions (i.e., nested_ptr() returns null pointer), then std::terminate is called.