AjaxItemSelect.Controllers.ErrorsController.ServerError C# (CSharp) Метод

ServerError() публичный Метод

public ServerError ( ) : System.Web.Mvc.ActionResult
Результат System.Web.Mvc.ActionResult
        public ActionResult ServerError()
        {
            ViewBag.StatusCode = Response.StatusCode.ToString();

            // The view will show the error message 
            // if running on localhost (for you, the programmer)

            // Otherwise, you must hover your mouse over the
            // "Technical information" error message

            ViewBag.Prompt = "Error message:";
            ViewBag.Error = HttpContext.Error.Message;
            ViewBag.ErrorDetail = HttpContext.Error.InnerException.Message;

            return View();
        }
    }
ErrorsController