Rust: Error Handling
Crazcalm's Tech Stack
This video covers how to covert third party errors into your own errors. The purpose of the "?" operator is also explained. We also go over the basics of how to use/implement the From trait.
Links:
- From trait docs: https://doc.rust-lang.org/std/convert/trait.From.html
- The Edition Guide explanation of the "?" operator: https://doc.rust-lang.org/edition-guide/rust-2018/error-handling-and-panics/the-question-mark-operator-for-easier-error-handling.html
- Error Chain crate: https://crates.io/crates/error-chain
- Rust by Example -- From and Into traits: https://doc.rust-lang.org/rust-by-example/conversion/from_into.html
My social links:
2021-06-25
0.0 LBC
Copyrighted (contact publisher)
56216306 Bytes