filmov
tv
CppCon 2019: Ben Saks “Back to Basics: Exception Handling and Exception Safety”

Показать описание
—
—
—
Exception handling (EH) is a powerful tool for dealing with errors. Using EH effectively can produce code that is simpler, more readable, and more robust than you can get with alternative mechanisms. In this session, we will explain the purpose of EH by contrasting it with the most common alternative, function return codes. We will show you the preferred techniques for throwing and catching exceptions, including which types of objects to throw, when to throw them, and how to catch them. We will describe the different levels of exception safety guarantees and demonstrate techniques like RAII that will help you write functions that provide those guarantees. We will illustrate how to write exception-neutral code that allows you to use EH without creating additional failure points.
—
Ben Saks
Chief Engineer, Saks & Associates
—
*-----*
*-----*
—
—
Exception handling (EH) is a powerful tool for dealing with errors. Using EH effectively can produce code that is simpler, more readable, and more robust than you can get with alternative mechanisms. In this session, we will explain the purpose of EH by contrasting it with the most common alternative, function return codes. We will show you the preferred techniques for throwing and catching exceptions, including which types of objects to throw, when to throw them, and how to catch them. We will describe the different levels of exception safety guarantees and demonstrate techniques like RAII that will help you write functions that provide those guarantees. We will illustrate how to write exception-neutral code that allows you to use EH without creating additional failure points.
—
Ben Saks
Chief Engineer, Saks & Associates
—
*-----*
*-----*
CppCon 2019: Ben Saks “Back to Basics: Exception Handling and Exception Safety”
Back to Basics: Understanding Value Categories - Ben Saks - CppCon 2019
Better Code with C++ Attributes - Ben Saks - CppCon 2019
Back to Basics: Compiling and Linking - Ben Saks - CppCon 2021
Back to Basics: Const as a Promise - Dan Saks - CppCon 2019
Freestanding C++ - Past, Present, and Future - Ben Saks - CppCon 2019
Back to Basics: Pointers and Memory - Ben Saks - CppCon 2020
Back to Basics: Declarations in C++ - Ben Saks - CppCon 2022
Back to Basics: Function and Class Templates - Dan Saks - CppCon 2019
Back to Basics: Unit Tests - Ben Saks - CppCon 2020
CppCon 2019 - Ben Saks - passing by [ reference to const ]
Handling a Family of Hardware Devices with a Single Implementation - Ben Saks - CppCon 2021
Dealing with Embedded Limitations - Panel Discussion hosted by Ben Saks - CppCon 2020
CppCon 2019: Ben Deane “Everyday Efficiency: In-Place Construction (Back to Basics?)”
Maintainability and Refactoring Impact of Higher-Level Design Features - Titus Winters - CppCon 2019
Infiltrating a Code Base: Moving Toward a Better C - Brian Ruth - CppCon 2019
CppCon 2019 - Mesh: Automatically Compacting Your C++ Application's Memory
Back to Basics: Object-Oriented Programming - Jon Kalb - CppCon 2019
Finding Strings in Large Files - Ondrej Dobias - CppCon 2019
Ray Tracing In Minutes - Tanki Zhang - CppCon 2019
Embedded: Customizing Dynamic Memory Management in C++ - Ben Saks - CppCon 2020
CppCon 2019: Peter Bindels & Sy Brand 'Hello World From Scratch'
Back to Basics: Lambdas from Scratch - Arthur O'Dwyer - CppCon 2019
Postmodern Meta C++ - Kris Jusiak - CppCon 2019
Комментарии