Click here to Skip to main content
15,893,904 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,my project need all the exception to be stored in database table with a unique id for each MSG.
i need to display them when exception occur from database table

can any one give me an idea how to do that

thanks inadvance
Posted

1 solution

Well I dont believe that's a Good Programming aproach when it comes to "Exception Handling".

As a programmer one should be able to identify what all Types of Exceptions can be thrown by perticular code. And then based on that corresponding Exceptions should be handled in Catch Block. Also you can have System.Exception as a default/supporting Exception in addition to all your Expected Exceptions.

Any ways, you may refer below links for list of not ALL but many common .Net Exceptions.

http://mikevallotton.wordpress.com/2009/07/08/net-exceptions-all-of-them/

http://www.developerfusion.com/article/1889/exception-handling-in-c/3/
 
Share this answer
 
v2
Comments
pradeep manne 5-Nov-11 10:59am    
Hi ,yes i agree with u but i have collected the errors of my program and inserted into a table.i need a process so that i can display when they requires
RaisKazi 5-Nov-11 11:05am    
I don't think you need ALL .Net Framework Exceptions for that. Identify which are the expected exceptions in your perticular code and handle them in Catch Block.
Sergey Alexandrovich Kryukov 5-Nov-11 23:25pm    
Agree, this looks like a bad idea, my 5 for the advice.
--SA
RaisKazi 6-Nov-11 0:39am    
Thank you SA. :)
thatraja 6-Nov-11 1:13am    
Nice articles, 5!
Bookmarked...looks good

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