Mastering C++: Exception Handling
1h 34mIntermediate2024-04-25
Authors

Károly Nyisztor
Mobile Developer, Instructor
Course details
Bug fixing in code can start off rather simple, with obvious and recurring bugs easy to identify and root out. But eventually the bugs become harder to find and more difficult to fix. Instead of searching out errors one by one, getting to the root of the problem by enhancing your exception handling can turn your code base from chaos to clarity.
Learn how to handle errors and anomalies in your C++ code like a pro in this course with software engineer Károly Nyisztor. From the basics of exceptions to advanced techniques for robust error handling, Károly guides you through the nuances of exception handling, and explains how proper handling and logging make bugs easier to track and fix.
Learn how to handle errors and anomalies in your C++ code like a pro in this course with software engineer Károly Nyisztor. From the basics of exceptions to advanced techniques for robust error handling, Károly guides you through the nuances of exception handling, and explains how proper handling and logging make bugs easier to track and fix.
Skills covered
C++Programming FoundationsProgramming LanguagesOpen SourceSoftware DevelopmentDeep Dive (X:Y)
Concepts
0. Introduction
- 01 - Master C++ exceptions
- 02 - An exceptional story of exceptions
1. The Basics of Exception Handling
- 03 - Dealing with errors
- 04 - Effective error management
- 05 - Syntax essentials - Try, catch, and throw
- 06 - Using GitHub Codespaces with this course
- 07 - Challenge - Implement basic error handling
- 08 - Solution - Implement basic error handling
2. Diving Deeper into Exceptions
- 09 - C++ standard exceptions
- 10 - Implementing custom exceptions
- 11 - Multiple exceptions
- 12 - Exceptions that share a base class
- 13 - Hierarchical exceptions
- 14 - Challenge - Handling multiple exceptions
- 15 - Solution - Handling multiple exceptions
3. Advanced Error Handling
- 16 - Advanced error handling
- 17 - The evolution of exception specs
- 18 - Rogue exceptions
- 19 - Thread-local exceptions
- 20 - Cross-thread exception propagation
- 21 - Challenge - Catching rogue exceptions
- 22 - Solution - Catching rogue exceptions
4. Best Practices and Tips
- 23 - Exception-proof resource management
- 24 - Exceptions and resource leaks
- 25 - Using RAII
- 26 - Challenge - Managing resources with RAII
- 27 - Solution - Managing resources with RAII
Conclusion
- 28 - Next steps