Skip to content

Glossary: Rust Beyond the Basics

anyhow

Also written: anyhow::Error, anyhow::Result

A crate for error handling in applications. Its single `anyhow::Error` type holds any error, and you can add context messages like "reading prices.txt" to explain what failed.

Where the book teaches it

Related terms

thiserrorwith_contextbail!