Wednesday, 28 August 2013

Exception Handling - What is the correct way to do it?

Exception Handling - What is the correct way to do it?

I have been using exception handling for some time and have installed
Resharper and now getting all sorts of messages saying I should and should
be doing this. Anyhoo, it says I shouldn't be using try and catch blocks
around my code. So where do I put them to catch exceptions? I have seen
people looking for certain exceptions like File not found, but what about
all the other errors or exceptions that are unique?
Does anyone have links for best practices for exception handling that
would keep re-sharper happy?
Thanks

No comments:

Post a Comment