12Exception Handling
When we write application software, we should ensure its correctness and robustness. In other words, the software should run correctly when conditions and user operations are correct. When an unexpected problem arises or users operate improperly, the program should behave properly and reasonably without causing system failure or catastrophic consequences. Because conditions and user operations cannot be guaranteed, we should consider all possible circumstances and take effective measures accordingly. This precautionary measure for dealing with runtime errors is called exception handling.
12.1Basic Concepts of Exception Handling
Some unavoidable runtime errors can be anticipated, including insufficient memory, missing files ...
Get C++ Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.