Rustacean Station  cover image

Code Like a Pro in Rust with Brenden Matthews

Rustacean Station

00:00

The Benefits of Having an Error Type

So, so if we're talking about errors, if you think about the case, so it was a pretty common thing is to use some library. And most of the time libraries are going to implement their own error types. You probably want to have one struct or anenum for handling all of the different all of theDifferent errors within your code. So doing that type conversion lets you you know encapsulate different types of errors and handle them in same way. Does that make sense?

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app