We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a24fec8 commit 6d5ee4eCopy full SHA for 6d5ee4e
Quick.Protocol/Utils/ExceptionUtils.cs
@@ -1,7 +1,4 @@
1
using System;
2
-using System.Collections.Generic;
3
-using System.Linq;
4
-using System.Reflection;
5
using System.Text;
6
7
namespace Quick.Protocol.Utils
@@ -15,9 +12,9 @@ public static string GetExceptionString(Exception ex)
15
12
while (tmpEx != null)
16
13
{
17
14
sb.AppendLine("------------------------------------------------------");
18
- sb.AppendLine("异常类型:" + ex.GetType().FullName);
19
- sb.AppendLine("异常消息:" + ex.Message);
20
- sb.AppendLine("异常堆栈:" + ex.StackTrace);
+ sb.AppendLine("异常类型:" + tmpEx.GetType().FullName);
+ sb.AppendLine("异常消息:" + tmpEx.Message);
+ sb.AppendLine("异常堆栈:" + tmpEx.StackTrace);
21
tmpEx = tmpEx.InnerException;
22
}
23
return sb.ToString();
0 commit comments