public OnException ( System.Web.Mvc.ExceptionContext context ) : void | ||
context | System.Web.Mvc.ExceptionContext | |
return | void |
public override void OnException(ExceptionContext context)
{
base.OnException(context);
View = "Error";
var e = context.Exception;
if (!context.ExceptionHandled // if unhandled, will be logged anyhow
|| RaiseErrorSignal(e) // prefer signaling, if possible
|| IsFiltered(context)) // filtered?
return;
LogException(e);
}