logoalt Hacker News

wvenablelast Tuesday at 5:46 AM1 replyview on HN

You should leak implementation details on exceptions -- if an operation fails because of a network timeout or file access issue, that's useful information. Most exceptions cannot be meaningfully caught anyway so let me log with a good stack trace and be done with it.


Replies

naaskinglast Tuesday at 1:29 PM

The inner, wrapped exception is logged. Leaking exception details can also leak privileged information, and if you're not careful this can leak information to attackers too. More information is not necessarily better.

show 1 reply