ASU Web Community

ASU.WebUtilities.ExceptionCatcher

The ASU.WebUtilities.ExceptionCatcher is an assembly that you can use with your .NET web applications to catch any unhandled exception that gets generated and pass the exception to the applications error.aspx page.

Current production version is 1.0.0.0, and is available for checkout from: https://svn.asu.edu/svn/webcommune/.net/asu.webutilities.exceptioncatcher/tags/1.0.0.0/.

If you wish to expand on the ExceptionCatcher please check it out from: https://svn.asu.edu/svn/webcommune/.net/asu.webutilities.exceptioncatcher/trunk/.

You must be a member of the ASU Web Developer Commune group to get access to this project.

If you want this assembly to appear in the Add Reference dialog box, simply place a copy of the assembly in the following folder C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PublicAssemblies.

To use the ExceptionCatcher in you application simply add the following line to the <httpModules> section of your web.config file:

 <add name="ExceptionCatcher" type="ASU.WebUtilities.ExceptionCatcher.LoadErrorPage, ASU.WebUtilities.ExceptionCatcher, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0bef2d522ac0c11e"/>

When the ExceptionCatcher catches an exception that has occurred within you application the variable Session["ERROR_OBJECT"] is set to the exception that was generated, and the user is passed to the error.aspx page of the application with a query string "err" parameter set to the exceptions message.

Constructors

There are no publicly available constructors in the ExceptionCatcher.

Methods

There are no publicly available methods in the ExceptionCatcher.