Beginner's guide to Error Handling in Rust
Error handling in Rust is very different if you’re coming from other languages. In languages like Java, JS, Python etc, you usually
throw
exceptions andreturn
successful values. In Rust, you return something called aResult
.
Source: Beginner's guide to Error Handling in Rust, an article by Sheshbabu Chinnakonda.