Candor.Web.Mvc.Filters.HandleAndLogErrorAttribute.OnException C# (CSharp) Method

OnException() public method

Called when an exception occurs.
The parameter is null.
public OnException ( System.Web.Mvc.ExceptionContext filterContext ) : void
filterContext System.Web.Mvc.ExceptionContext The action-filter context.
return void
        public override void OnException(ExceptionContext filterContext)
        {
            if (filterContext.Exception != null)
                LogProvider.Error(filterContext.Exception.Message, filterContext.Exception);
            else
                LogProvider.Error("Unknown Error.");

            base.OnException(filterContext);
        }
HandleAndLogErrorAttribute