Results 1 to 2 of 2

Thread: exception handler and loging

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2004
    Location
    india
    Posts
    95

    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?

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704

    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
  •  



Click Here to Expand Forum to Full Width