Skip to content

Instantly share code, notes, and snippets.

@stevejay
Created May 5, 2014 21:00
Show Gist options
  • Save stevejay/e74a0ad99b07eadac783 to your computer and use it in GitHub Desktop.
Save stevejay/e74a0ad99b07eadac783 to your computer and use it in GitHub Desktop.
public class DerivedHandleErrorAttribute : HandleErrorAttribute
{
public override void OnException(ExceptionContext filterContext)
{
base.OnException(filterContext);
if (context.ExceptionHandled)
{
// Log filterContext.Exception in some way.
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment