예제 #1
0
파일: GetCore.cs 프로젝트: ni-xue/Tool.Net
        protected override void AshxException(AshxException ex)
        {
            ex.ExceptionHandled = true;

            Log.Debug("测试", ex);

            Json(new { msg = "系统错误。" });
        }
예제 #2
0
        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);
        }
예제 #3
0
파일: GetMin.cs 프로젝트: ni-xue/Tool.Net
        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);
        }
예제 #4
0
 protected override IApiOut AshxException(AshxException ex)
 {
     Tool.Utils.Log.Fatal("全局错误:", ex);
     return(ApiOut.View("404.html"));
 }