Friday, August 6, 2010

Ignore or Cancel exception handling for certain errors

Ignore or cancel the exceptions handling for certain cases by creating a custom ErrorHandler. It could be something like this (pseudo code):

public class CustomHandleErrorAttribute : FilterAttribute, IExceptionFilter
{
public void OnException(ExceptionContext filterContext)
{
//do nothing here.
}
}

I myself need to try this once.

No comments: