Browse Source

Echo Catch HttpRequestException

felix 1 year ago
parent
commit
1345b13c75
1 changed files with 7 additions and 1 deletions
  1. 7 1
      Vinno.vCloud.Common.FIS/Helper/JsonRpcHelper.cs

+ 7 - 1
Vinno.vCloud.Common.FIS/Helper/JsonRpcHelper.cs

@@ -1,6 +1,8 @@
-using JsonRpcLite.Services;
+using JsonRpcLite.Network;
+using JsonRpcLite.Services;
 using System;
 using System.Collections.Generic;
+using System.Net.Http;
 using Vinno.IUS.Common.Log;
 using Vinno.vCloud.Common.FIS.Remedicals;
 using WingInterfaceLibrary.DTO.Device;
@@ -409,6 +411,10 @@ namespace Vinno.vCloud.Common.FIS.Helper
             {
                 Logger.WriteLineError($"EchoAsync Error,ErrorCode:{rpcExcetpion.ErrorCode},ErrorMsg:{rpcExcetpion.InternalMessage} ");
             }
+            catch (HttpRequestException e)
+            {
+                Logger.WriteLineError($"EchoAsync Error:HttpException");
+            }
             catch (Exception ex)
             {
                 Logger.WriteLineError($"EchoAsync Error,ErrorMsg:{ex}");