Click here to Skip to main content
15,901,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am creating error log file while handling error using HandleErrror Attribute..but not all exceptions are saving in log file..i am also using try catch in my code.if we are handling errors in this way then can we use try catch or not..
Posted

1 solution

Hai

The best way to capture error using Try...Catch only,developer must use Try...Catch block in each function other wise code abort abnormally, i mean it user use website or windows application,if any error occur it goes to exception catch block and the show error message and continue to use,if not use Try ...Catch if error occor it stop the website or windows application and need to open form starting point(again login and so on)

So use Try...Catch...Finally in each function.
 
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