This is the sixth of ten introductory modules on Object-Oriented Programming (OOP) in C++.
Core concepts explored in this module include:
- Exceptions
- try / catch / throw
- Exception propagation
- when an exception is thrown and not caught locally, it moves up the call stack looking for a matching
catch; if none is found, the program terminates.
- when an exception is thrown and not caught locally, it moves up the call stack looking for a matching
- RAII (Resource Acquisition Is Initialization) interactyion with exceptions
- RAII objects automatically clean up in their destructors.
- Stack unwinding
- when an exception propagates upward, the runtime destroys all objects with automatic storage in each stack frame it exits.