FunGame-Core/Library/Exception/ExceptionExtension.cs
2023-03-31 20:34:40 +08:00

11 lines
306 B
C#

namespace Milimoe.FunGame.Core.Library.Exception
{
public static class ExceptionExtension
{
public static string GetErrorInfo(this System.Exception e)
{
return (e.InnerException != null) ? $"InnerExceoption: {e.InnerException}\n{e}" : e.ToString();
}
}
}