Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Modern C++ Error Handling

CppCon via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
A conference talk from CppCon 2024 where Phil Nash explores comprehensive approaches to error handling in modern C++. Dive into the evolution of error handling mechanisms, from traditional exceptions to newer features like std::optional (C++17) and std::expected with Monadic Operations (C++23). Learn when to use different error handling strategies including boolean returns, error codes, global/thread local error status, and pointer/reference arguments. Understand the role of assertions and upcoming contracts in error management. The presentation addresses critical questions about making optimal error handling decisions at the right time in your development process, with special attention to how error conditions impact code safety and security. Phil Nash, the original author of Catch2 testing framework, ISO C++ standards committee member, and experienced trainer, provides valuable insights for both novice and experienced C++ developers looking to improve their error handling practices.

Syllabus

Modern C++ Error Handling - Phil Nash - CppCon 2024

Taught by

CppCon

Reviews

Start your review of Modern C++ Error Handling

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.