“The Unexceptional Exceptions"
summary
Claims that exceptions are “boring” and usable in small doses and shows how to make error handling correct, not scary: use RAII via unique_ptr/scope-guard to automate cleanup, prefer noexcept swap and destructors that never throw, distinguish basic vs strong guarantees (no leaks vs commit/rollback), repackage errors at system boundaries, and convert legacy return-code APIs at boundaries. Warns that pthread_cancel can interrupt anywhere (even noexcept/destructors) so thread cancellation requires special handling.
AI-written summary · about
chapters (9)
- 0:00Introduction to exceptions
- 2:07Exception basics in C++
- 13:31Why exceptions are feared
- 21:27Error handling guarantees
- 30:04Resource management with RAII
- 40:03When to catch exceptions
- 47:36System design and error handling
- 50:27Legacy code and exceptions
- 53:21Q&A and conclusion
related talks
01h 02mBack to Basics: Exceptions
59m“The Exception Situation"
01h 33mSafe and Sane C++ Types
01h 00mThe Dawn of a New Error
30mDesign Patterns for Handling/Reporting Errors in C++ - Parallel Algorithms & Executors
01h 28mEmbracing the **noexcept** Operator and Specifier *Safely*
44mA Practical Approach to Error Handling
01h 01mSome Programming Myths Revisited
