添加项目文件。
This commit is contained in:
14
WaterCloud.Code/Extend/Ext.Exception.cs
Normal file
14
WaterCloud.Code/Extend/Ext.Exception.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
|
||||
namespace WaterCloud.Code
|
||||
{
|
||||
public static partial class Extensions
|
||||
{
|
||||
public static Exception GetOriginalException(this Exception ex)
|
||||
{
|
||||
if (ex.InnerException == null) return ex;
|
||||
|
||||
return ex.InnerException.GetOriginalException();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user