Skip to Main Content
C++ Programming
book

C++ Programming

by Yuan Dong, Fang Yang, Li Zheng, Tsinghua University Tsinghua University Press
February 2019
Beginner content levelBeginner
504 pages
14h 34m
English
De Gruyter
Content preview from C++ Programming

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering C++ Programming

Mastering C++ Programming

Jeganathan Swaminathan

Publisher Resources

ISBN: 9783110470666