AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
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?