EasyMES/WaterCloud.Code/Extend/Ext.Exception.cs

19 lines
413 B
C#
Raw Normal View History

2022-10-20 17:12:54 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
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();
}
}
}