Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Another case of it hurts so much cause it has happened too many times.
"Why library throwing exceptions, just logging error is fine".
When you hear that sentence you know that there's a lot of therapy needed in the evening, cause someone (aka you) has to start drilling the basics into their heads. -
@IntrusionCM tell them throwing the exception allows them to write the exception message to a file, trigger a print job so that they can shove the paper up their ass, which is a more conventional error handling method than logging.
Related Rants
"Stop throwing errors in your library! They cause my app to crash"
Who amongst us hasn't hear of the popular maxim: "Fail late even after you know something is wrong, and then make sure the failure cascades over the whole app in mysterious ways"
rant
js