Error Handling is Cancelling Operations
summary
Argument: error handling — whether error codes, errno, exceptions, or error monads — functions to cancel dependent operations so upstream success becomes a precondition for downstream work. Concrete examples include network authentication that aborts subsequent calls, RAII and destructors enforcing acquire/release semantics, exception-safety levels (basic/strong) and surprises around uncaught_exceptions (C++17). Practical fixes shown: validate at boundaries, use custom allocators to precheck memory, and prefer cancel-before-fail strategies.
AI-written summary · about
chapters (11)
- 0:00Intro
- 9:33Exceptions
- 14:56Resources
- 21:14Uncaught Exceptions
- 32:06Basic Operations
- 34:36Explicit Recognition
- 37:16Dependency
- 43:12Additional Space
- 47:48Other Situations
- 50:01Exception Guarantee
- 52:33Out of Memory








