• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Library.ErrorMsg类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Library.ErrorMsg的典型用法代码示例。如果您正苦于以下问题:C# ErrorMsg类的具体用法?C# ErrorMsg怎么用?C# ErrorMsg使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ErrorMsg类属于Library命名空间,在下文中一共展示了ErrorMsg类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: start

 public override void start()
 {
     try
     {
         try
         {
             Variable.sServerIp = ReadDataFromXml.AppIp;
             Variable.sPort = ReadDataFromXml.AppPort;
             Variable.sUserId = ReadDataFromXml.AppUser;
             Variable.sPassword = ReadDataFromXml.AppPwd;
             this.execConnection();
         }
         catch (Exception exception1)
         {
             Exception exception = exception1;
             ErrorMsg errorMsg = new ErrorMsg("ChkErrorTimer", "start", string.Concat("启动故障检测失败", exception.Message));
             this.logHelper.WriteError(errorMsg);
         }
         this.tChkErrorTimer = new System.Timers.Timer((double)this.iChkErrTime);
         this.tChkErrorTimer.Elapsed += new ElapsedEventHandler(this.onChkErrorMain);
         this.tChkErrorTimer.Enabled = true;
     }
     catch (Exception exception3)
     {
         Exception exception2 = exception3;
         this.tChkErrorTimer.Enabled = true;
         ErrorMsg errorMsg1 = new ErrorMsg("ChkErrorTimer", "start", string.Concat("启动故障检测失败Ex", exception2.Message));
         this.logHelper.WriteError(errorMsg1);
     }
 }
开发者ID:lexzh,项目名称:Myproject,代码行数:30,代码来源:ChkErrorTimer.cs


示例2: Add

 public override void Add(DataTable data)
 {
     if ((data != null) && (data.Rows.Count > 0))
     {
         GpsDataTable table = new GpsDataTable(UpdataStruct.ColNameList);
         try
         {
             int num = 1;
             for (int i = 0; i <= (data.Rows.Count - 1); i++)
             {
                 table.InsertRows(data.Rows[i].ItemArray);
                 if ((num >= base._Size) || (i == (data.Rows.Count - 1)))
                 {
                     lock (base._PosList.SyncRoot)
                     {
                         base._PosList.Add(CompressHelper.CompressToSelf(table));
                     }
                     table.Rows.Clear();
                     num = 0;
                 }
                 num++;
             }
         }
         catch (Exception exception)
         {
             ErrorMsg msg = new ErrorMsg("RemotingDataBS", "Add", exception.Message + exception.StackTrace);
             new LogHelper().WriteError(msg);
             base._PosList = new ArrayList(100);
         }
     }
 }
开发者ID:lexzh,项目名称:Myproject,代码行数:31,代码来源:RemotingDataBS.cs


示例3: start

 public override void start()
 {
     try
     {
         this.tUpdateRemedyBillTimer = new Timer((double)this.iGetBillPosInterval);
         this.tUpdateRemedyBillTimer.Elapsed += new ElapsedEventHandler(this.UpdateRemedyBill_Elapsed);
         this.tUpdateRemedyBillTimer.Enabled = true;
     }
     catch (Exception exception1)
     {
         Exception exception = exception1;
         this.tUpdateRemedyBillTimer.Enabled = true;
         ErrorMsg errorMsg = new ErrorMsg("AddressResolution", "start", string.Concat("定时补救订单", exception.Message));
         this.logHelper.WriteError(errorMsg);
     }
     try
     {
         this.tGetCarDayPos = new Timer((double)this.iGetCarDayPosInterval);
         this.tGetCarDayPos.Elapsed += new ElapsedEventHandler(this.tGetCarDayPos_Elapsed);
         this.tGetCarDayPos.Enabled = true;
     }
     catch (Exception exception3)
     {
         Exception exception2 = exception3;
         this.tGetCarDayPos.Enabled = true;
         ErrorMsg errorMsg1 = new ErrorMsg("AddressResolution", "start", string.Concat("车辆当天末次位置", exception2.Message));
         this.logHelper.WriteError(errorMsg1);
     }
 }
开发者ID:lexzh,项目名称:Myproject,代码行数:29,代码来源:AddressResolution.cs


示例4: execSaveGpsLogTable

 public static void execSaveGpsLogTable(int sWrkId, int sOrderId, string sCarId, int sOptcode, string sMsgText)
 {
     string str = sMsgText.Replace("'", "‘");
     string str1 = "";
     try
     {
         str1 = string.Concat(str1, " insert into ");
         str1 = string.Concat(str1, " GpsLog(wrkid,orderid,userid,carid,optcode,OptCodeDetail,isSuccess,description,optTime) ");
         str1 = string.Concat(str1, " values({0},{1},'{2}',{3}, 13, {4},-1,'{5}',getDate())");
         object[] objArray = new object[] { sWrkId, sOrderId, ReadDataFromXml.ExecUserId, sCarId, sOptcode, str };
         str1 = string.Format(str1, objArray);
         SqlDataAccess.insertBySql(str1);
     }
     catch (Exception exception1)
     {
         Exception exception = exception1;
         ErrorMsg errorMsg = new ErrorMsg()
         {
             ClassName = "ReadDataFromDB",
             FunctionName = "execSaveGpsLogTable",
             ErrorText = string.Concat("保存下发内容到GpsLog时发生错误!", exception.Message, ",SQL:", str1)
         };
         (new LogHelper()).WriteError(errorMsg, exception);
     }
 }
开发者ID:lexzh,项目名称:Myproject,代码行数:25,代码来源:ReadDataFromDB.cs


示例5: start

 public override void start()
 {
     try
     {
         this.tBroadCastTimer = new Timer((double)this.iBroadCastTime);
         this.tBroadCastTimer.Elapsed += new ElapsedEventHandler(this.tBroadCastTimer_Elapsed);
         this.tBroadCastTimer.Enabled = true;
         this.tBroadCastTimer.Start();
     }
     catch (Exception exception1)
     {
         Exception exception = exception1;
         ErrorMsg errorMsg = new ErrorMsg("Service", "GpsPicMain", string.Concat("启动播报普通信息失败", exception.Message));
         this.logHelper.WriteError(errorMsg);
     }
     try
     {
         this.tBroadCastUrgentTimer = new Timer((double)this.iBroadCastTime);
         this.tBroadCastUrgentTimer.Elapsed += new ElapsedEventHandler(this.tBroadCastUrgentTimer_Elapsed);
         this.tBroadCastUrgentTimer.Enabled = true;
         this.tBroadCastUrgentTimer.Start();
     }
     catch (Exception exception3)
     {
         Exception exception2 = exception3;
         ErrorMsg errorMsg1 = new ErrorMsg("Service", "GpsPicMain", string.Concat("启动播报紧急信息失败", exception2.Message));
         this.logHelper.WriteError(errorMsg1);
     }
 }
开发者ID:lexzh,项目名称:Myproject,代码行数:29,代码来源:BroadCastTimer.cs


示例6: method_0

 private void method_0(Exception exception_0)
 {
     Thread.Sleep(0x1388);
     LogHelper helper = new LogHelper();
     ErrorMsg msg = new ErrorMsg("UpDataOtherData", helper.GetCallFunction(), helper.GetExceptionMsg(exception_0));
     helper.WriteError(msg);
 }
开发者ID:lexzh,项目名称:Myproject,代码行数:7,代码来源:UpDataOtherData.cs


示例7: start

 public override void start()
 {
     try
     {
         this.tGetConfigInfo = new Timer(100);
         this.tGetConfigInfo.Elapsed += new ElapsedEventHandler(this.tGetConfigInfo_Elapsed);
         this.tGetConfigInfo.Enabled = true;
     }
     catch (Exception exception1)
     {
         Exception exception = exception1;
         ErrorMsg errorMsg = new ErrorMsg("CarInOutOfRangeOnTime", "start", string.Concat("开启获取按时进出站配置信息错误,", exception.Message));
         this.logHelper.WriteError(errorMsg);
     }
     try
     {
         this.tGetCurrentPosInfo = new Timer((double)this.iGetCurrentPosInfo);
         this.tGetCurrentPosInfo.Elapsed += new ElapsedEventHandler(this.tGetCurrentPosInfo_Elapsed);
         this.tGetCurrentPosInfo.Enabled = true;
     }
     catch (Exception exception3)
     {
         Exception exception2 = exception3;
         ErrorMsg errorMsg1 = new ErrorMsg("CarInOutOfRangeOnTime", "start", string.Concat("开启检测是否按时进出站错误,", exception2.Message));
         this.logHelper.WriteError(errorMsg1);
     }
 }
开发者ID:lexzh,项目名称:Myproject,代码行数:27,代码来源:CarInOutOfRangeOnTime.cs


示例8: DeleteOldRecord

 public void DeleteOldRecord(int iLogSaveDate)
 {
     try
     {
         DirectoryInfo info = new DirectoryInfo(FileHelper.FilePath);
         if (!info.Exists)
         {
             return;
         }
         foreach (FileInfo info2 in info.GetFiles())
         {
             if (info2.CreationTime.AddDays((double) iLogSaveDate).Date < DateTime.Now.Date)
             {
                 File.Delete(info2.FullName);
             }
         }
     }
     catch (Exception exception)
     {
         ErrorMsg pErrorMsg = new ErrorMsg("LogHelper", "清除旧日志文件", exception.Message);
         new LogHelper().WriteError(pErrorMsg);
         return;
     }
     LogMsg pLogMsg = new LogMsg("LogHelper", "清除旧日志文件", "成功");
     new LogHelper().WriteLog(pLogMsg);
 }
开发者ID:lexzh,项目名称:Myproject,代码行数:26,代码来源:LogHelper.cs


示例9: method_0

 private void method_0()
 {
     Trace.Write("appserver - Thread upNewPosition, WebGpsClient_GetCurrentPosData start!");
     DataRow row = UpdataStruct.CloneDataTableColumn.NewRow();
     SqlDataAccess access = new SqlDataAccess();
     DateTime dbTime = base.GetDbTime(access);
     Label_0019:
     try
     {
         SqlParameter[] parameterArray = new SqlParameter[] { new SqlParameter("@ReadTime", dbTime) };
         DataTable table = access.getDataBySP("WebGpsClient_GetCurrentPosData", parameterArray);
         if (table != null)
         {
             goto Label_0056;
         }
     Label_004A:
         Thread.Sleep(0x7d0);
         goto Label_0019;
     Label_0056:
         if (table.Rows.Count <= 0)
         {
             goto Label_004A;
         }
         dbTime = Convert.ToDateTime(table.Rows[0]["svrTime"]);
         string str = string.Empty;
         string str2 = string.Empty;
         CarInfo dataCarInfoBySimNum = null;
         CarPartInfo info2 = new CarPartInfo();
         foreach (DataRow row2 in table.Rows)
         {
             this.method_1(row2, row, info2);
             str = Convert.ToString(row2["phone"]);
             str2 = Convert.ToString(row2["carNum"]);
             dataCarInfoBySimNum = CarDataInfoBuffer.GetDataCarInfoBySimNum(str);
             if (((dataCarInfoBySimNum != null) && !string.IsNullOrEmpty(str2)) && !str2.Equals(dataCarInfoBySimNum.CarNum))
             {
                 CarDataInfoBuffer.GetDataCarInfoByCarNum(str2);
             }
             if (dataCarInfoBySimNum != null)
             {
                 dataCarInfoBySimNum.CarPosData = row.ItemArray;
                 dataCarInfoBySimNum.IsNewPosTime = dbTime;
             }
         }
         Thread.Sleep(20);
         goto Label_0019;
     }
     catch (Exception exception)
     {
         Thread.Sleep(0xbb8);
         LogHelper helper = new LogHelper();
         ErrorMsg msg = new ErrorMsg("UpdataNewPosition", helper.GetCallFunction(), helper.GetExceptionMsg(exception));
         helper.WriteError(msg);
         goto Label_0019;
     }
 }
开发者ID:lexzh,项目名称:Myproject,代码行数:56,代码来源:UpdataNewPosition.cs


示例10: start

 public override void start()
 {
     try
     {
         this.tTimer1 = new Timer(1000);
         this.tTimer1.Elapsed += new ElapsedEventHandler(this.tTimer1_Elapsed);
         this.tTimer1.Enabled = true;
     }
     catch (Exception exception1)
     {
         Exception exception = exception1;
         ErrorMsg errorMsg = new ErrorMsg("SendPZMessage", "start", string.Concat(",", exception.Message));
         this.logHelper.WriteError(errorMsg);
     }
 }
开发者ID:lexzh,项目名称:Myproject,代码行数:15,代码来源:SendPZMessage.cs


示例11: start

 public override void start()
 {
     try
     {
         this.tTerminalDemand = new Timer((double)this.iTerminalDemand);
         this.tTerminalDemand.Elapsed += new ElapsedEventHandler(this.tTerminalDemand_Elapsed);
         this.tTerminalDemand.Enabled = true;
     }
     catch (Exception exception1)
     {
         Exception exception = exception1;
         ErrorMsg errorMsg = new ErrorMsg("JTBTerminalDemand", "start", string.Concat("启动定时下发终端点播失败", exception.Message));
         this.logHelper.WriteError(errorMsg);
     }
 }
开发者ID:lexzh,项目名称:Myproject,代码行数:15,代码来源:JTBTerminalDemand.cs


示例12: start

 public override void start()
 {
     try
     {
         this.tCheckRoadSpeedAndRan = new Timer(1000);
         this.tCheckRoadSpeedAndRan.Elapsed += new ElapsedEventHandler(this.tCheckRoadSpeedAndRan_Elapsed);
         this.tCheckRoadSpeedAndRan.Enabled = true;
     }
     catch (Exception exception1)
     {
         Exception exception = exception1;
         ErrorMsg errorMsg = new ErrorMsg("PlatFormCheckRoadSpeedAndRank", "start", string.Concat("判断车自定义分段超速报警和道路等级,", exception.Message));
         this.logHelper.WriteError(errorMsg);
     }
 }
开发者ID:lexzh,项目名称:Myproject,代码行数:15,代码来源:PlatFormCheckRoadSpeedAndRank.cs


示例13: start

 public override void start()
 {
     try
     {
         this.tCheckSeparateSticky = new Timer((double)this.SeparateAndStickyInterval);
         this.tCheckSeparateSticky.Elapsed += new ElapsedEventHandler(this.tCheckSeparateSticky_Elapsed);
         this.tCheckSeparateSticky.Enabled = true;
     }
     catch (Exception exception1)
     {
         Exception exception = exception1;
         ErrorMsg errorMsg = new ErrorMsg("SeparateAndSticky", "start", string.Concat("开启检测脱车粘车报警错误,", exception.Message));
         this.logHelper.WriteError(errorMsg);
     }
 }
开发者ID:lexzh,项目名称:Myproject,代码行数:15,代码来源:SeparateAndSticky.cs


示例14: start

 public override void start()
 {
     try
     {
         this.tCheckPathAlarm = new Timer((double)this.iCheckPathAlarm);
         this.tCheckPathAlarm.Elapsed += new ElapsedEventHandler(this.tCheckPathAlarm_Elapsed);
         this.tCheckPathAlarm.Enabled = true;
     }
     catch (Exception exception1)
     {
         Exception exception = exception1;
         ErrorMsg errorMsg = new ErrorMsg("PlatformAlarmPathAlarm", "start", string.Concat("开启检测偏移路线报警错误,", exception.Message));
         this.logHelper.WriteError(errorMsg);
     }
 }
开发者ID:lexzh,项目名称:Myproject,代码行数:15,代码来源:PlatformAlarmPathAlarm.cs


示例15: start

 public override void start()
 {
     try
     {
         this.tSendCurrentAddress = new Timer(10000);
         this.tSendCurrentAddress.Elapsed += new ElapsedEventHandler(this.tSendCurrentAddress_Elapsed);
         this.tSendCurrentAddress.Enabled = true;
     }
     catch (Exception exception1)
     {
         Exception exception = exception1;
         ErrorMsg errorMsg = new ErrorMsg("InquiresCarCurrentAddress", "start", string.Concat("启动查询车辆当前地址信息失败", exception.Message));
         this.logHelper.WriteError(errorMsg);
     }
 }
开发者ID:lexzh,项目名称:Myproject,代码行数:15,代码来源:InquiresCarCurrentAddress.cs


示例16: start

 public override void start()
 {
     try
     {
         this.tRecordTimer = new System.Timers.Timer((double)this.iRecordTime);
         this.tRecordTimer.Elapsed += new ElapsedEventHandler(this.onRecordTimerMain);
         this.tRecordTimer.Enabled = true;
     }
     catch (Exception exception1)
     {
         Exception exception = exception1;
         this.tRecordTimer.Enabled = true;
         ErrorMsg errorMsg = new ErrorMsg("PicTimer", "start", string.Concat("启动定时拍照失败", exception.Message));
         this.logHelper.WriteError(errorMsg);
     }
 }
开发者ID:lexzh,项目名称:Myproject,代码行数:16,代码来源:PicTimer.cs


示例17: start

 public override void start()
 {
     try
     {
         this.DWLBSPosTimer = new Timer((double)this.DWLBSPosInterval);
         this.DWLBSPosTimer.Elapsed += new ElapsedEventHandler(this.DWLBSPosTimer_Elapsed);
         this.DWLBSPosTimer.Enabled = true;
         this.getLBSPosParam();
     }
     catch (Exception exception1)
     {
         Exception exception = exception1;
         ErrorMsg errorMsg = new ErrorMsg("DWLBSPos", "start", string.Concat("启动DWLBS定位服务失败", exception.Message));
         this.logHelper.WriteError(errorMsg);
     }
 }
开发者ID:lexzh,项目名称:Myproject,代码行数:16,代码来源:DWLBSPos.cs


示例18: getGatheredAlarmConfig

 private DataTable getGatheredAlarmConfig()
 {
     DataTable dataBySql;
     try
     {
         dataBySql = SqlDataAccess.getDataBySql(" select a.*, b.RegionName, b.RegionDot from GpsGatheredAlarmConfig a INNER JOIN GpsRegionType b on a.RegionId = b.RegionId ");
     }
     catch (Exception exception1)
     {
         Exception exception = exception1;
         ErrorMsg errorMsg = new ErrorMsg("PlatformGatheredAlarm", "getGatheredAlarmConfig", string.Concat("获取聚集报警配置信息,", exception.Message));
         this.logHelper.WriteError(errorMsg);
         dataBySql = null;
     }
     return dataBySql;
 }
开发者ID:lexzh,项目名称:Myproject,代码行数:16,代码来源:PlatformGatheredAlarm.cs


示例19: start

 public override void start()
 {
     try
     {
         this.tGetCurrentPosInfoTimer = new Timer((double)this.iGetCurrentPosInfoInterval);
         this.tGetCurrentPosInfoTimer.Elapsed += new ElapsedEventHandler(this.tGetCurrentPosInfoTimer_Elapsed);
         this.tGetCurrentPosInfoTimer.Enabled = true;
         this.sAdminRegionPreTime = DateTime.Now.ToString();
     }
     catch (Exception exception1)
     {
         Exception exception = exception1;
         ErrorMsg errorMsg = new ErrorMsg("IORegionTimer", "start", string.Concat("启动出入行政区报警服务失败", exception.Message));
         this.logHelper.WriteError(errorMsg);
     }
 }
开发者ID:lexzh,项目名称:Myproject,代码行数:16,代码来源:IORegionTimer.cs


示例20: start

 public override void start()
 {
     try
     {
         this.InitLCSTime();
         this.tLCSPosTimer = new Timer((double)this.iLCSTime);
         this.tLCSPosTimer.Elapsed += new ElapsedEventHandler(this.tLCSPosTimer_Elapsed);
         this.tLCSPosTimer.Enabled = true;
     }
     catch (Exception exception1)
     {
         Exception exception = exception1;
         ErrorMsg errorMsg = new ErrorMsg("LCSTimer", "start", string.Concat("启动LCS定位服务失败", exception.Message));
         this.logHelper.WriteError(errorMsg);
     }
 }
开发者ID:lexzh,项目名称:Myproject,代码行数:16,代码来源:LCSTimer.cs



注:本文中的Library.ErrorMsg类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Library.List类代码示例发布时间:2022-05-26
下一篇:
C# LibZano.Frame类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap