Extending and Modifying the Exception Handling Application Block
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
|The latest Enterprise Library information can be found at the Enterprise Library site.|
In its original state, the Exception Handling Application Block works well for typical exception handling scenarios, such as logging an exception message, wrapping one exception with another, or replacing an exception with a different exception. However, there may be times when you have to customize certain behaviors of the application block to better suit your application's particular requirements. There are two ways to do this. You can extend the Exception Handling Application Block using the built-in extension points. You can also modify the application block by making changes to its source code. For more details, see the following topics:
- Adding a New Exception Handler
- Adding a New Exception Formatter
- Guidelines for Modifying the Application Blocks