Zoos Rust Club [Episode 4] - Error-Handling @zoodotdev
Zoos Rust Club [Episode 4] - Error-Handling  @zoodotdev
Uploaded December 2023 | Updated November 2026, 3 days ago
Welcome back to Zoo's Rust Club! Today we'll learn how to handle errors.

*What's in store for you:*
πŸ”· Learn how Rust uses Result and generics to handle errors
πŸ”· Analyze different error-handling libraries, like anyhow and thiserror, and see when each is appropriate
πŸ”· What is the ? operator and how does it work
πŸ”· When to return errors vs. panicking

BUT If you haven't seen our first Rust Club video, check it out here ➑️ youtube.com/watch?v=QF3kMyzMC40

00:00 Intro
01:00 Panics vs. handling
03:12 Unwrap
05:10 Libraries shouldn't panic
07:18 Errors shouldn't be strings
09:02 Errors as enums
13:10 Errors as structs
16:35 Integrating HTTP error codes
20:38 Hiding sensitive information from errors
21:58 Match patterns in Rust
22:40 Wrapping errors from other libraries
25:30 Error conversion with .map_err
26:30 Error conversion with From and ?
28:20 The "thiserror" crate
32:20 CLI tools and exit codes
37:20 Real-world examples from KittyCAD's open source

---------------------------------------------------------------------------------------

β‡Š Check us out below β‡Š
Website: https://zoo.dev
Github: github.com/KittyCAD
LinkedIn: linkedin.com/company/zoodotdev
Twitter: twitter.com/zoodotdev
Discord: discord.com/invite/JQEpHR7Nt2
Zoos Rust Club [Episode 4] - Error-HandlingHow Zookeeper Thinks: Understanding Design ReasoningKCL: Parametric design with functions2D to 3D: Extrude, Sweep, Loft & Revolve in Zoo Design StudioKCL: Boolean solids (union, intersect, subtract)Zoos Rust Club [Episode 2] - How to Build Parsers [Pt 2]Our conversational CAD agent in actionExport Zookeeper ConversationWhy Clear & Reset a Zookeeper Session?Zoos Rust Club [Episode 1] - How to Build ParsersZookeeper in Action - ResearchKCL: Tags, fillets and editing solids
Zoo |

Zoo's Rust Club [Episode 4] - Error-Handling

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER