@model System.Web.Mvc.HandleErrorInfo @{ ViewBag.Title = "错误"; } @functions{ Exception GetExceptionDetailMessage(Exception ex) { if (ex.InnerException == null) return ex; else return GetExceptionDetailMessage(ex.InnerException); } }