zoukankan      html  css  js  c++  java
  • 客户端异常处理


     try

                    {

                        service.AddOperateLog(mol);

                    }

                    catch (Exception ex)

                    {

                        if (service.InnerChannel.State == System.ServiceModel.CommunicationState.Faulted)

                        {

                            service = new QhrServiceClient();

                            MyExceptionRecord my = new MyExceptionRecord();

                            my.Id = System.Guid.NewGuid().ToString();

                            my.OccurrenceTime = DateTime.Now;

                            my.ExceptionType = "Operation";

                            my.OperationName = "AddOperateLog";

                            my.ExceptionMessage = ex.Message;

                            my.Status = 1;

     

                            service.CreateExceptionRecord(my);

                        }

                    }

     

     

  • 相关阅读:
    WDA学习(14):Colors Cell and Input Enable to ALV Column
    JavaScript try-catch语句(错误处理)
    constructor
    input file 重复上传同一张图片失效的解决办法
    input下拉带输入框
    box-shaw四边阴影详解
    苹方字体合集
    两个div不同高度并排显示
    弹窗库
    webstorm破解安装版本
  • 原文地址:https://www.cnblogs.com/quietwalk/p/2283760.html
Copyright © 2011-2022 走看看