# std::nested_exception::rethrow_nested

> C++ Atlas: `cppatlas.com/w/cpp/error/nested_exception/rethrow_nested` | Source: https://en.cppreference.com/w/cpp/error/nested_exception/rethrow_nested | Domain: Diagnostics | Standards: C++11, C++26

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

## Official Specification Summary (cppreference)

```cpp
[[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.

### Parameters

(none)

### Return value

(none)

---
Attribution: content from https://en.cppreference.com/w/cpp/error/nested_exception/rethrow_nested (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.