Exception Handling - Default handler for any exception types

Topics: Exception Handling Application Block
Feb 9, 2009 at 10:59 PM
Hi,

I will would like to see if there is a way to attach a default handler for any exception types that are not specified in the config file.  The reason is that in case I forgot to setup the handling for a specific exception type, I hope to still get notified through the logging handler and fix the problem. 

Any help on this is appreciated.  Thanks!

april
Feb 10, 2009 at 1:24 AM
You can define a global exception policy having the generic Exception type and configure a logging handler that will log the inner exception. If you're going to use it in a web application, you can capture unhandled exceptions in the Application_Error event of the global.asax file.


Sarah Urmeneta
Global Technology & Solutions
Avanade, Inc.
entlib.support@avanade.com