添加项目文件。
This commit is contained in:
14
HT.Cloud.Code/Extend/Ext.Exception.cs
Normal file
14
HT.Cloud.Code/Extend/Ext.Exception.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
|
||||
namespace HT.Cloud.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