File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,30 +5,25 @@ f1_keywords: ["exception/std::bad_exception"]
55helpviewer_keywords : ["bad_exception class"]
66ms.assetid : 5ae2c4ef-c7ad-4469-8a9e-a773e86bb000
77---
8- # bad_exception Class
8+ # nested_exception Class
99
1010The class describes an exception that can be thrown from an unexpected handler.
1111
1212## Syntax
1313
1414``` cpp
1515class nested_exception {
16- public: nested_exception();
17- nested_exception(const nested_exception&) noexcept = default;
18- nested_exception& operator=(const nested_exception&) noexcept = default;
19- virtual ~ nested_exception() = default; // access functions [[ noreturn]]
20- void rethrow_nested() const;
21- exception_ptr nested_ptr() const noexcept;
16+ public:
17+ nested_exception();
18+ nested_exception(const nested_exception&) = default;
19+ nested_exception& operator=(const nested_exception&) = default;
20+ virtual ~ nested_exception() = default; // access functions
21+ [[ noreturn]] void rethrow_nested() const;
22+ exception_ptr nested_ptr() const;
2223};
2324
24- template<class T > [[ noreturn]] void throw_with_nested(T&& t); template <class E > void rethrow_if_nested(const E& e);
25-
26-
27- template<class T > [[ noreturn]] void throw_with_nested(T&& t); template <class E > void rethrow_if_nested(const E& e);
28- }
29-
30- void rethrow_nested() const;
31-
25+ template<class T > [[ noreturn]] void throw_with_nested(T&& t);
26+ template <class E > void rethrow_if_nested(const E& e);
3227```
3328
3429## Remarks
You can’t perform that action at this time.
0 commit comments