Multipurpose of Exception Handling Class Part 1
July 2, 2007
In this Part, i will share of my code project which is i have made the multipurpose exception handling class. What is the trully meaning of multipurpose ? in this class i have create the exception handling class which covered the function for throwing the exception message and also giving the email alert notification to the programmer or event for system administrator.
for instance is like this :
in DAL i am using the exception handling class –> if there is something error in my DAL class –> the error handler will capture the Exception stack trace –> the Exception class will talk to the Logging class and also either the email class.
and then my class like this Logging class and Email class :
the logging class has a duty to write the log in text file for every single stck error trace and then the email class will send those error stack trace automatically to the proper progammers email and also carbon copy to the system administrator.
let’s take a look for technically details ( continue to part 2 )
Entry Filed under: Design Pattern Code, Development in C# 2.0, Own design custom Framework. .
Trackback this post | Subscribe to the comments via RSS Feed