protected override void AshxException(AshxException ex) { ex.ExceptionHandled = true; Log.Debug("测试", ex); Json(new { msg = "系统错误。" }); }
protected override IApiOut AshxException(AshxException ex) { //for (int i = 0; i < 10000; i++) //{ // Tool.Utils.Log.Error("异常日志", ex); //} Tool.Utils.Log.Error("异常日志", ex); //ex.IsParameters = true; ex.ExceptionHandled = false; return(null);//base.AshxException(ex); }
protected override IApiOut AshxException(AshxException ex) { Log.Debug("GetMin", ex); return(base.AshxException(ex)); //return ApiOut.Json(new { msg = "系统错误。", count }); Tool.SqlCore.DbHelper dbHelper; //System(1, null); //dbHelper.Select(System, 1); Test.TSqlAttribute sqlAttribute = new Test.SelectAttribute("SELECT") { OnSqlAction = System }; sqlAttribute.OnStart(dbHelper); }
protected override IApiOut AshxException(AshxException ex) { Tool.Utils.Log.Fatal("全局错误:", ex); return(ApiOut.View("404.html")); }