News for hackers. Stuff that matters.
Re:Code Design Decision – Always throw custom exceptions by eweise on Monday December 19, 2022 @12:05PM (#34054497)
"Just because it's useful to wrap exceptions in 5% of the cases doesn't mean you should wrap the rest 95% just in case"

Yes you should wrap ALL third party exceptions for the reasons given in the post. There is no 'just in case' reason. Any third party exception returned may cause your client to be dependent on it.

There are no comments on this comment yet.