CppCon 2019: Ben Saks “Back to Basics: Exception Handling and Exception Safety”
—
Discussion & Comments:
—
Presentation Slides, PDFs, Source Code and other presenter materials are available at:
—
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 &
1 view
2482
941
2 years ago 01:29:55 1
Sorting Algorithms: Speed Is Found In The Minds of People - Andrei Alexandrescu - CppCon 2019
2 years ago 00:53:49 1
Back to Basics: Move Semantics (part 2 of 2) - Klaus Iglberger - CppCon 2019
3 years ago 01:01:30 1
CppCon 2019: Ben Saks “Back to Basics: Exception Handling and Exception Safety”
3 years ago 00:51:12 1
CppCon 2019: Kostas Kyrimis ADL: introduction in name taxonomy, customization points and use cases
3 years ago 01:00:19 1
CppCon 2019: Timur Doumler “Type punning in modern C++”
3 years ago 00:52:23 5
CppCon 2019: Miro Knejp “Non-conforming C++: the Secrets the Committee Is Hiding From You”
4 years ago 00:59:53 1
CppCon 2019: Chandler Carruth “There Are No Zero-cost Abstractions”
4 years ago 00:55:42 3
CppCon 2019: Matt Godbolt “Path Tracing Three Ways: A Study of C++ Style”
4 years ago 01:00:15 1
C++20 STL Features: One Year of Development on GitHub - Stephan T. Lavavej - CppCon 2020
4 years ago 01:03:05 1
CppCon 2019: Timur Doumler “C++20: The small things”
4 years ago 01:31:26 1
CppCon 2019: Bjarne Stroustrup “C++20: C++ at 40”
5 years ago 00:56:45 1
CppCon 2019: Greg Law “Modern Linux C++ debugging tools - under the covers”
5 years ago 01:00:15 1
CppCon 2019: Patrice Roy “C++ as a First Language... Really?”
5 years ago 00:32:20 1
CppCon 2019: Billy O’Neal “C++ Standard Library “Little Things”
5 years ago 00:58:02 1
CppCon 2019: Jonathan Müller “Using C++20’s Three-way Comparison <=>”
5 years ago 01:05:31 1
CppCon 2019: Gordon Brown “Efficient GPU Programming with Modern C++”
5 years ago 00:13:26 1
C++ Weekly - Ep 173 - The Important Parts of C++98 in 13 Minutes