Hi Daniel, It depends, really.
How much of the inner working to you want to hide from the developer/user? Personally i find it very frustrating when a certain/specific exception is replace with a generic exception, the real reason of the exception got lost, while sometimes the generic exception is what you want, since you want to hide certain inners, but this is from a developer perspective. >From a user perspective i think you should always fallback to a kind of error page if you encounter exceptions you cannot handle, and what you display on that error page, depends on the kind of user your application is using. // Ryan -----Original Message----- From: Daniel Wilson To: [EMAIL PROTECTED] Sent: 02-10-2003 14:18 Subject: [ADVANCED-DOTNET] Handling Errors Hey everyone, My apps are tiered having multiple UI, Facade, Business Logic, Data = Access layers usually. How do you typically handle errors in each = layer? Do you have SqlServer like error messages propagate up to the UI = or facade layer? Or do you have plenty of bool methods in the = DataAccess Layer indicating success failure and have it trap data store = specific errors? Or finally, do you created custom errors that are = specific to the layer but generic enough as to abstract the other layers = away from that layer's implementation. For example, a "DataStore = Unavailable" error thrown in the data access layer regardless of whether = it is a Sql Server "unable to make connection error" or even a file = access error if you have a xml file for a datastore? Just curious and any advice would be appreciated, Daniel Wilson =================================== This list is hosted by DevelopMentor� http://www.develop.com NEW! ASP.NET courses you may be interested in: 2 Days of ASP.NET, 29 Sept 2003, in Redmond http://www.develop.com/courses/2daspdotnet Guerrilla ASP.NET, 13 Oct 2003, in Boston http://www.develop.com/courses/gaspdotnet View archives and manage your subscription(s) at http://discuss.develop.com ------------------------------------- The information included in this message is personal and/or confidential and intended exclusively for the addressees as stated. This message and/or the accompanying documents may contain confidential information and should be handled accordingly. If you are not the intended reader of this message, we urgently request that you notify Centric immediately and that you delete this e-mail and any copies of it from your system and destroy any printouts immediately. It is forbidden to distribute, reproduce, use or disclose the information in this e-mail to third parties without obtaining prior permission from Centric. We expressly point out that there are risks associated with the use of e-mail. Centric and the companies within the group shall not accept any liability whatsoever for damage resulting from the use of e-mail. Legally binding obligations can only arise for Centric by means of a written instrument, signed by an authorized representative of Centric. ------------------------------------- =================================== This list is hosted by DevelopMentor� http://www.develop.com NEW! ASP.NET courses you may be interested in: 2 Days of ASP.NET, 29 Sept 2003, in Redmond http://www.develop.com/courses/2daspdotnet Guerrilla ASP.NET, 13 Oct 2003, in Boston http://www.develop.com/courses/gaspdotnet View archives and manage your subscription(s) at http://discuss.develop.com
