S
Subramanian Iyer.NET
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, which is the best thing to do:
1. Not to catch the exception in DAL and let it pop up to the Application
level and let 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. To 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
Iyer
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, which is the best thing to do:
1. Not to catch the exception in DAL and let it pop up to the Application
level and let 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. To 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
Iyer