public void OnException(ExceptionContext exceptionContext) { if(Exclude(exceptionContext)) return; var errorLog = new MvcErrorLog(Provider.Application, exceptionContext).ToErrorLog(); if(!(exceptionContext.Exception is ErrorLogException)) TryExecute(Provider.Save, errorLog); foreach(var plugin in Plugins) { TryExecute(plugin.Execute, errorLog); } }
public void OnException(ExceptionContext exceptionContext) { if (Exclude(exceptionContext)) { return; } var errorLog = new MvcErrorLog(Provider.Application, exceptionContext).ToErrorLog(); if (!(exceptionContext.Exception is ErrorLogException)) { TryExecute(Provider.Save, errorLog); } foreach (var plugin in Plugins) { TryExecute(plugin.Execute, errorLog); } }