creating your own errors in rust may be easier than you think
Channel:
Subscribers:
8,090
Published on ● Video Link: https://www.youtube.com/watch?v=f9hEjMUuNjw
It absolutely is possible to create our own errors by impleminting the Error trait in #rust by hand. While Thiserror can make things a bit easier it isn't necessary. In this video I'll show you how you can make your errors and at the least understand a bit more how errors work in Rust code.
Links
Error trait: https://doc.rust-lang.org/std/error/trait.Error.html
thiserror crate: https://crates.io/crates/thiserror
Other Videos By Brooks Builds (brookzerker)
Tags:
Alacritty
Error trait rust
Helix
Programming
Rust
Rust errors
Zellij
alacritty terminal
coding
rust
rust programming language
rust programming tutorial