Overview
Explore the controversial topic of exceptions in C++ through this comprehensive conference talk from CppNow 2023. Delve into the original intent and mechanics of exceptions, analyze real-world usage patterns, and examine common misuses in resource management, retries, checking, hierarchies, logging, data passing, and control flow. Learn better alternatives for handling these situations and gain insights into the key attributes exceptions should provide. Discover where exceptions are most appropriate and examine a model exception class design. Benefit from the speaker's extensive experience across various industries to understand what works best for large-scale engineering projects, and develop a nuanced perspective on exception handling in C++.
Syllabus
Introduction
Overview
What are exceptions
What is an exception
Philosophy of Exceptions
Is it appropriate to use exceptions
Use cases for exceptions
Exceptions for rare events
When to use exceptions
Exceptional Exceptions
Exceptions in Code
Exceptional Logging
Exceptional Checking
Exceptional Trier
Exceptional Hard to Find
Exceptional Data Passing
Exceptional Control Flow
Exception Hierarchy
Taught by
CppNow