Written by Kevin Jones, 2024-10-07. Dedicated to the public domain, CC0, no rights reserved. Find me on GitHub or BlueSky.
- Every program will have bugs, every program will run into unlikelysituations. Error handling makes taking repsonsibility for protecting yourself and others from this kind of problems problems. ("Defensive programming", akin to defensive driving.)
- When does the error happen: compile time or runtime?
- How frequently will the error conditions happen: "should never", "not commonly", or "quite often"?
- In what context is the error occurring: your library, somebody else's library, or your application?