Summary
Well, that was quite a deep dive into C++ exceptions, including some areas that have been deprecated.
Here’s what we covered:
- What was the problem?
- Specifics of C++ exceptions
- Catching exceptions
- Throwing exceptions
try/catch/finallyblocks- Naming of exceptions
- Grouping of exceptions
- Derived exceptions
- Resource Acquisition Is Initialization (RAII)
- Handling resource exhaustion
- Exception specifications (deprecated in ISO C++17)
noexceptand thenoexcept()operator- Unexpected exceptions (deprecated in ISO C++17)
- Uncaught exceptions and
terminate() - Standard C++ Library exceptions
On to other topics..