Skip to content

Commit

Permalink
fix: 修复发送功能中CA1031的警告
Browse files Browse the repository at this point in the history
  • Loading branch information
leven99 committed Oct 7, 2019
1 parent 98563db commit 91affad
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ViewModels/MainWindowVM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,15 @@ public void Send()
}
}
}
catch
catch (ArgumentException)
{
DepictInfo = string.Format(cultureInfo, "发送异常,请检查发送数据");
}
catch(InvalidOperationException)
{
DepictInfo = string.Format(cultureInfo, "发送异常,请检查发送数据");
}
catch(FormatException)
{
DepictInfo = string.Format(cultureInfo, "发送异常,请检查发送数据");
}
Expand Down

0 comments on commit 91affad

Please sign in to comment.