Click here to Skip to main content
15,887,435 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a C#.NET WebApplication which implements MVC Architecture.
I need to implement Exception Handling to my application.
I have included Try Catch Blocks and few Exception Messages , but I dont think that is sufficient .
Can anyone suggest best way to implement exception handling?
If I have to log my error what is the best approach?

Thanks!
Posted
Updated 12-Apr-10 0:41am
v2

1 solution

Appi9 wrote:
I have included Try Catch Blocks and few Exception Messages , but I dont think that is sufficient .


Why do you think it is not sufficient?

In UI, on every event use try catch block, and if any exception occurs,
then show your exception message.
Dont use try catch block in other layers except UI..
 
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