Skip to content

Commit 85e3d09

Browse files
author
msebolt
committed
daily change
1 parent 16d9a54 commit 85e3d09

1 file changed

Lines changed: 10 additions & 15 deletions

File tree

‎docs/standard-library/nested-exception-class.md‎

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,25 @@ f1_keywords: ["exception/std::bad_exception"]
55
helpviewer_keywords: ["bad_exception class"]
66
ms.assetid: 5ae2c4ef-c7ad-4469-8a9e-a773e86bb000
77
---
8-
# bad_exception Class
8+
# nested_exception Class
99

1010
The class describes an exception that can be thrown from an unexpected handler.
1111

1212
## Syntax
1313

1414
```cpp
1515
class 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

0 commit comments

Comments
 (0)