|
|
|
|
|
by rpbiwer2
716 days ago
|
|
I can't cite my sources, but I recently started learning Rust and I've been doing this. I would guess that I picked it up from the Rust book, since that's been my primary learning source. I know I _could_ define my own error type, but that's tedious, especially if there are many types of errors to handle. For my (non-production) purposes it's been fine. What's the idiomatic way to handle errors? Is there a way to collect more detailed error information without excessive boilerplate? |
|
The docs have good examples of basic usage: https://docs.rs/anyhow/latest/anyhow/