A guide to error handling in Rust.
The first half introduces Rust's language features and libraries for error handling. The second half should help you write good error handling code in Rust. There's a couple of chapters in between on the error handling ecosystem and recovering from errors.
Authored by Nicholas Cameron1 (@nrc). To report bugs, mistakes, or feedback, visit the source repo.
NOTE: I have recently resurrected this project. A lot of it is a bit out of date, needs significant editing, or I've changed my mind on (especially the second half). Please don't pay too much attention for now.
Footnotes
-
I offer consulting on adopting and learning Rust. I may have availability get in touch via email. ↩