示例#1
0
        /// <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)
            };
        }
 internal KnownUserErrorModel(KnownUserException exception)
 {
     Exception = exception;
 }
 internal KnownUserErrorModel(KnownUserException exception)
 {
     Exception = exception;
 }
 /// <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)
     };
 }
 internal KnownUserValidationException(KnownUserException innerException, IQueue queue)
     : base(innerException.Message, innerException, queue)
 {
 }