AppfailReporting.Mvc.AppfailReportAttribute.OnException C# (CSharp) Method

OnException() public method

public OnException ( System.Web.Mvc.ExceptionContext filterContext ) : void
filterContext System.Web.Mvc.ExceptionContext
return void
        public void OnException(ExceptionContext filterContext)
        {
            // Only log handled exceptions. Appfail will catch all unhandled exceptions anyway.
            if (filterContext.ExceptionHandled)
            {
                filterContext.Exception.SendToAppfail();
            }
        }
    }
AppfailReportAttribute