YoVDO

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

Offered By: NDC Conferences via YouTube

Tags

NDC Conferences Courses C++ Courses API Design Courses std::optional Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore error handling techniques in C++ through this comprehensive conference talk from NDC Techtown 2022. Delve into the three most common approaches for managing exceptional circumstances during program execution, examining their impact on program architecture, API design, and coding style. Discover whether functions should return error codes, utilize optional arguments via pointers, employ special result-like types, or throw exceptions. Gain insights into fundamental concepts and best practices suitable for developers of all experience levels. Learn about exception safety, adding context to errors, and the characteristics of various error handling methods. Examine the special case of std::optional, naive implementations, functional programming styles, and pattern matching in C++. Investigate pre-conditions, such as non-null pointers, and explore good practices for effective error handling in C++ programming.

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

Related Courses

A Faster Serialization Library Based on Compile-time Reflection and C++ 20
CppCon via YouTube
A Short Life Span - For A Regular Mess
NDC Conferences via YouTube
Back to Basics: C++ Value Semantics - Lecture 2022
CppCon via YouTube
C++23 Ranges - Functional Programming With New View Adaptors and Other Utilities
ACCU Conference via YouTube
C++ - No More Nulls! - Fixing the Billion Dollar Mistake
NDC Conferences via YouTube