/robowaifu/'s C++ learning textbook chapter 05
Errors
“I realized that from now on a large part of my life would be spent finding and correcting my own mistakes.” —Maurice Wilkes, 1949
"In this chapter, we discuss correctness of programs, errors, and error handling. If you are a genuine novice, you’ll find the discussion a bit abstract at times and painfully detailed at other times. Can error handling really be this important? It is, and you’ll learn that one way or another before you can write programs that others are willing to use. What we are trying to do is to show you what “thinking like a programmer” is about. It combines fairly abstract strategy with painstaking analysis of details and alternatives."
- § 5.3.1 Syntax errors
- § 5.3.2 Type errors
- § 5.3.3 Non-errors
- § 5.4 Link-time errors
- § 5.5 Run-time errors
- § 5.5.1 The caller deals with errors - part a
- § 5.5.1 The caller deals with errors - part b
- § 5.5.1 The caller deals with errors - part c
- § 5.5.1 The caller deals with errors - part d
- § 5.5.2 The callee deals with errors
- § 5.5.3 Error reporting - part a
- § 5.5.3 Error reporting - part b
- § 5.6.1 Bad arguments
- § 5.6.2 Range errors - part a
- § 5.6.2 Range errors - part b
- § 5.6.2 Range errors - part c
- § 5.6.3 Bad input - part a
- § 5.6.3 Bad input - part b
- § 5.6.3 Bad input - part c
- § 5.6.3 Bad input - part d
- § 5.6.4 Narrowing errors - part a
- § 5.6.4 Narrowing errors - part b
- § 5.7 Logic errors - part a
- § 5.7 Logic errors - part b
- § 5.9.1 Practical debug advice - part a
- § 5.9.1 Practical debug advice - part b
- § 5.9.1 Practical debug advice - part c
- § 5.10 Pre- and post-conditions - part a
- § 5.10 Pre- and post-conditions - part b
- § 5.10 Pre- and post-conditions - part c
- § 5.10.1 Post-conditions