flâneur — a map of the web's best reading

Error Handling in Rust - Andrew Gallant's Blog

burntsushi.net · 14,604 words · saved by 1 readers

I blog mostly about my own programming projects.

Like most programming languages, Rust encourages the programmer to handle errors in a particular way. Generally speaking, error handling is divided into two broad categories: exceptions and return values. Rust opts for return values. In this article, I intend to provide a comprehensive treatment of how to deal with errors in Rust. More than that, I will attempt to introduce error handling one piece at a time so that you'll come away with a solid working knowledge of how everything fits together. When done naively, error handling in Rust can be verbose and annoying. This article will explore th

Explore this link on the map →

related reading