Chapter 28. Exception Handling
The code you’ve seen in this book has been created for illustration purposes. It has not dealt with errors so that you would not be distracted from the central issues being presented. Real-world programs must take error conditions into consideration.
In this lesson, you will learn
What exceptions are
How exceptions are used and what issues they raise
How to build exception hierarchies
How exceptions fit into an overall error-handling approach
What a debugger is
Bugs, Errors, Mistakes, and Code Rot
It is rare for a real-world-sized program not to have some sort of error, or bug. The bigger the program, the more likely there will be bugs. In fact, in larger programs, it is often the case that many bugs actually get out the ...
Get Sams Teach Yourself C++ in One Hour a Day, Sixth Edition 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.