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);

                        }

                    }

     

     

  • 相关阅读:
    poj1141
    poj1260
    poj1080
    poj1221
    用Microsoft Office SharePoint Designer 2007开发aspx
    在Web Part中使用User Control
    MOSS中的WebPart开发
    在MOSS中开发一个模块化的feature
    SharePoint Web Service的身份验证
    MOSS中对列表的一些操作(创建,查询等)
  • 原文地址:https://www.cnblogs.com/quietwalk/p/2283760.html
Copyright © 2011-2022 走看看