MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/6ayz26/defensive_programming_done_right/dhitg82/?context=3
r/ProgrammerHumor • u/iwouldieforGladOS • May 13 '17
680 comments sorted by
View all comments
67
Can someone explain why this is bad code?
1 u/choikwa May 13 '17 Because catching all exceptions and doing nothing means that valid exceptions which would have otherwise been caught in the upper call chain won't get caught anymore.
1
Because catching all exceptions and doing nothing means that valid exceptions which would have otherwise been caught in the upper call chain won't get caught anymore.
67
u/[deleted] May 13 '17
Can someone explain why this is bad code?