Tagged Questions
21
votes
9answers
3k views
Is catching general exceptions really a bad thing?
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 ...
7
votes
3answers
487 views
“how bad” is unrelated code in try-catch-finally block?
This is a related Q:
Is use of finally clause for doing work after return bad style/dangerous?
In the referenced Q, the finally code is related to the structure used and the necessity of ...