Summary of Exceptions

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/finally blocks
    • Naming of exceptions
    • Grouping of exceptions
    • Derived exceptions
    • Resource Acquisition Is Initialization (RAII)
    • Handling resource exhaustion
    • Exception specifications (deprecated in ISO C++17)
    • noexcept and the noexcept() operator
    • Unexpected exceptions (deprecated in ISO C++17)
    • Uncaught exceptions and terminate()
    • Standard C++ Library exceptions

On to other topics..