Skip to Main Content
Practical C++
book

Practical C++

by Rob McGregor
August 1999
Beginner to intermediate content levelBeginner to intermediate
912 pages
15h 44m
English
Que
Content preview from Practical C++

Chapter 15. Bulletproofing Programs with Assertions and Exceptions

<feature>
  • Examine error-handling strategies

  • Learn to handle programming andl runtime errors

  • Discover how assertion macros canp help you detect programming errors

  • Learn to handle anomalous situations with exception handling

</feature>

Devising Error Handling Strategies

Like it or not, bugs crop up in programs. An elusive bug can cause errors to occur that crash the program—or worse, the user’s computer. You can usually categorize an error as a programming error or as a runtime error that’s beyond the programmer’s control. To prevent catastrophe, you should use error-handling mechanisms to help detect programming errors in your source code and to deal with runtime errors, too.

Handling ...

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

Practical C++ Programming, 2nd Edition

Practical C++ Programming, 2nd Edition

Steve Oualline
C++ Cookbook

C++ Cookbook

D. Ryan Stephens, Christopher Diggins, Jonathan Turkanis, Jeff Cogswell

Publisher Resources

ISBN: 0789721449Purchase book