2021-08-23 16:57:25 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
2021-09-25 09:23:50 +08:00
|
|
|
|
namespace Infrastructure.Extensions
|
2021-08-23 16:57:25 +08:00
|
|
|
|
{
|
|
|
|
|
|
public static partial class Extensions
|
|
|
|
|
|
{
|
|
|
|
|
|
public static Exception GetOriginalException(this Exception ex)
|
|
|
|
|
|
{
|
|
|
|
|
|
if (ex.InnerException == null) return ex;
|
|
|
|
|
|
|
|
|
|
|
|
return ex.InnerException.GetOriginalException();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|