Click here to Skip to main content
15,887,350 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hey!!!
I hope that Exception Handling approach (as proposed by Microsoft's Guidelines & Best Practises) will not have any deviations (or impact) according to any domain specfic or because of client requirements.

Having said that could anybody help me to justify whether catching main Exception everywhere in all methods (in this case single catch block used) is a correct approach or not. As per my understanding we should catch specific exceptions but not all (in this case multiple catch blocks used). But if we dont follow this whether it may have any impact on Performance or any other area? So please explain in detail as I could take decision accordingly for our Project purpose.

Thanks.
Posted
Updated 15-May-13 23:39pm
v2

This is a great article on this subject:
Exception Handling Best Practices in .NET[^]

Good luck!
 
Share this answer
 
The below forum discussion might help you.

MSDN Forum Discussion[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900