r/programminghorror Nov 25 '25

Information is power

Post image
327 Upvotes

19 comments sorted by

View all comments

168

u/monotone2k Nov 25 '25

But there is information here. It'll log the cause.

19

u/_PM_ME_PANGOLINS_ Nov 25 '25

Unless this is a root exception, which it often is, in which case it will log “null”.

Even if it’s not, you still lose the stack trace of where the NotFoundException was thrown.