Is catching general exceptions really a bad thing?
- by Bob Horn
I typically agree with most code analysis warnings, and I try to adhere to them. However, I'm having a harder time with this one:
CA1031: Do not catch general exception types
I understand the rationale for this rule. But, in practice, if I want to take the same action regardless of the exception thrown, why would I handle each one…