mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-04-24 04:59:37 +08:00
29 lines
618 B
C#
29 lines
618 B
C#
using Milimoe.FunGame.Core.Entity.Enum;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Milimoe.FunGame.Core.Library.Exception
|
|
{
|
|
public class SystemError : System.Exception
|
|
{
|
|
public string Name { get; } = "";
|
|
|
|
public new string StackTrace { get => base.StackTrace ?? ""; }
|
|
|
|
public SystemError() { }
|
|
|
|
public SystemError(string Name)
|
|
{
|
|
this.Name = Name;
|
|
}
|
|
|
|
public string GetStackTrace()
|
|
{
|
|
return Name + "\r\n" + StackTrace;
|
|
}
|
|
}
|
|
}
|