|
-
May 30th, 2005, 10:40 PM
#1
Thread Starter
Lively Member
exception handler and loging
hi,
im creating a project with 3 tier architecture (DL,BL,PL). in each tier im using try..catch to handle exception. im using that DL,BL object in PL and i want to log the error detail that occurs in each tier in Database.
i.e im using BL,DL tiers objects in PL. so if any error occurs in any layer i want that error to be stored in DB. how to implement this concept in ASP.NET?
-
Jun 1st, 2005, 03:31 PM
#2
I wonder how many charact
Re: exception handler and loging
Normally, a DL does not swallow errors but propogates them to perhaps the BL. But, if you wish to log an error, you can simply catch and then issue a Throw to propogate the error to the next level, where it can decide what to do (either log it, and propogate or snuff it).
And in the DB layer, normally, errors are written to logs such as the server event log, or an email notification sent, not stored in a database.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|