.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Best practices of Exception handling in ASP.NET web applications

Posted By: Venkat     Posted Date: September 11, 2009    Points:2   Category :ASP.Net
Hi,
We are working on exception handling with ASP.NET web applications (with C# language). Would you please let me know the best practices of Exception handling?


Thanks,
Regards,
Venkat.

Responses
Author: Lakhan Pal Garg             
Posted Date: September 11, 2009     Points: 5   

Hi-

Add different catch statement for different kind of error instead of:
catch(Exception ex)
{
// required Action
}

Use specific Exception class for each error type i.e for numeric, array out of index, format exception etc..

Thanks & Regards
Lakhan Pal Garg
http://lakhangarg.blogspot.com/

Author: Akhil Raj       [Moderator]      
Posted Date: September 14, 2009     Points: 5   

check the following articles...

 http://www.codeproject.com/KB/architecture/exceptionbestpractices.aspx 


 http://www.c-sharpcorner.com/UploadFile/akrao/ExceptionManagement11142005020738AM/ExceptionManagement.aspx 




Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend