News for hackers. Stuff that matters.
Re:Code Design Decision – Always throw custom exceptions by eweise on Monday December 19, 2022 @05:41PM (#34058826)
The article talks about solving that exact issue by wrapping all of those different exceptions so that you don't have to deal with them. Much easier to catch a single ThirdPartyInternalFailure exception than catch all the internal exceptions that could have caused an internal failure.
Re:Code Design Decision – Always throw custom exceptions by Misdicorl on Monday December 19, 2022 @07:51PM (#34060054)
When library 1 through 10 take this approach to wrapping a common exception you get the above behavior. Obviously a single library should have a coherent internal story