Error handling Isn't All About Errors
summary
Claims error handling splits into concrete parts — define, propagate, match/react, discard, report — and shows how that framing guides tool choice. Builds and demos air plus color error hooks to produce rich reports (command, stdout/stderr sections, suggestions, hidden span backtraces) and shows it works end to end. Surveys libraries for each part: anyhow, thiserror, displaydoc, snafu, tracing, extract_error and notes reporters can’t implement Error so they don’t compose well for libraries.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 1:00Why Error Handling
- 3:28Fundamentals
- 7:10Propagation
- 7:43Error trait
- 10:36Simple errors
- 13:09Error reporters
- 18:07Tips
- 22:27Useful Libraries
- 26:02Discarding Errors
related talks
59mTo err is human - error handling in C++26
59mTo err is human - error handling in C++26
31mThe Anatomy of Error Messages in Rust
01h 02mOption(al) is not a failure
37mCompiler Errors in rustc: A UX Perspective
56mThe Dawn of a new Error
22mFrom Any to This
39mException Handling: through multiverses of interoperability
