Skip to content

Files

Latest commit

349fc7b · Mar 6, 2024

History

History

ErrorHandling

Error handling

Code illustrations for chapter 3, Modularity in Stroustrup's "A tour of C++" on error handling using exceptions.

What is it?

  1. Exceptions: illustration of error handling with exceptions.
  2. MemoryLeak: illustrates how inappropriately handled exceptions can lead to memory leaks, and how to fix that.
  3. Expected: illustrates error handling using std::expected.