/// <summary> /// When overridden it provides access to Known User Validation exceptions. /// </summary> /// <param name="filterContext">The Action Executing Filter Context</param> /// <param name="exception">The exception thrown</param> protected virtual void OnException(ActionExecutingContext filterContext, KnownUserException exception) { KnownUserErrorModel model = new KnownUserErrorModel(exception); filterContext.Result = new ViewResult() { ViewName = this.ErrorView, ViewData = new ViewDataDictionary(model) }; }