R
Rajeev Soni
Hi,
Considering the scenario for handling exceptions in Web Application where we have Presentation layer, Business layer and Data Access layer; if there any exception is occurred in DAL, what is the best thing to do:
1. Dont catch the exception in DAL and let it prop up to the Application level and the Global.Application_Error event log it to any source and show let ASP.NET show custom error page provided in Web.Config file.
OR
2. Catch Exception in DAL, Log the error using some Exception Handling mechanism and Tranfer the control to another page using Server.Transfer("ErrorPage.aspx");
Which one of the above 1 or 2 is the best way to handle exceptions?
Regards
Rajeev Soni
Considering the scenario for handling exceptions in Web Application where we have Presentation layer, Business layer and Data Access layer; if there any exception is occurred in DAL, what is the best thing to do:
1. Dont catch the exception in DAL and let it prop up to the Application level and the Global.Application_Error event log it to any source and show let ASP.NET show custom error page provided in Web.Config file.
OR
2. Catch Exception in DAL, Log the error using some Exception Handling mechanism and Tranfer the control to another page using Server.Transfer("ErrorPage.aspx");
Which one of the above 1 or 2 is the best way to handle exceptions?
Regards
Rajeev Soni