Why are empty catch blocks a bad idea? [closed]

I’ve just seen a question on try-catch, which people (including Jon Skeet) say empty catch blocks are a really bad idea? Why this? Is there no situation where an empty catch is not a wrong design decision?

I mean, for instance, sometimes you want to get some additional info from somewhere (webservice, database) and you really don’t care if you’ll get this info or not. So you try to get it, and if anything happens, that’s ok, I’ll just add a “catch (Exception ignored) {}” and that’s all

20 Answers
20

Leave a Comment