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

YouTube

Error Handling in C++ - As Easy as "Use Exceptions"?

NDC Conferences via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This session compares common ways to handle errors in C++, including exceptions, error codes, optional arguments, and result-like types. It discusses their effects on program architecture, API design, and code style.

Syllabus

Intro
Classification of issues
Examples of errors and exceptional situations
General approach to handling
Exception safety
Add context
General characteristics
std::optional - special case
Naive implementation
Functional style
Pattern matching in C++
Pre-conditions example (non-null pointer)
Good practices

Taught by

NDC Conferences

Reviews

Start your review of Error Handling in C++ - As Easy as "Use Exceptions"?

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.