Skip to content

Instantly share code, notes, and snippets.

@stevejay
Created May 5, 2014 21:06
Show Gist options
  • Save stevejay/05463d254cd62b0276cf to your computer and use it in GitHub Desktop.
Save stevejay/05463d254cd62b0276cf to your computer and use it in GitHub Desktop.
public class ErrorHandlerHttpModule : IHttpModule
{
public void Init(HttpApplication context)
{
context.Error += Application_Error;
}
private static void Application_Error(object sender, EventArgs e)
{
// Error handling code goes here.
}
public void Dispose()
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment