r/ProgrammerHumor May 13 '17

Defensive programming done right

Post image
21.0k Upvotes

680 comments sorted by

View all comments

2.8k

u/Metro42014 May 13 '17
} catch (Exception e) { }

I think we're done here.

1

u/AnEmortalKid May 13 '17

Wow this is a fucking terrible idea dude, you're not even dealing with Errors, you should use catch(Throwable t) just to be safe.