Whats in the Exception Management Application Block?
The Exception Management Application Block can be downloaded and installed from Microsoft’s Web site. I won’t list all of the code here because it is pretty involved, and you can explore this part yourself. Instead, we will take a cross-section of the application block to show you how to start using and extending it. The EMAB has three significant pieces. (Keep in mind I am editing a bit, but these are the important pieces.) Publishers implement the IExceptionPublisher interface defined by the Microsoft.ApplicationBlocks.ExceptionManagement.dll. Publishers are the pieces of code that actually write to a repository. The second piece is the ExceptionManager class. Requests to log exceptions are routed through the static method ExceptionManager.Publish(exception). The third piece is the App.config file. The .config file is used to tell the ErrorManager which publisher to use after deployment. This means that you can implement new IExceptionPublishers, and deploy them after your applicatio