From bef924bd1fed5f4d97be6877b2233d7108f622f8 Mon Sep 17 00:00:00 2001 From: Blank Date: Wed, 11 Dec 2024 17:45:34 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=A2=9E=E5=8A=A0]1.=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=96=AD=E8=A8=80=E5=BC=82=E5=B8=B8=E7=9A=84=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Exception/AssertionArgumentException.cs | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 GameFrameX.Core.Abstractions/Exception/AssertionArgumentException.cs diff --git a/GameFrameX.Core.Abstractions/Exception/AssertionArgumentException.cs b/GameFrameX.Core.Abstractions/Exception/AssertionArgumentException.cs new file mode 100644 index 00000000..cef11afc --- /dev/null +++ b/GameFrameX.Core.Abstractions/Exception/AssertionArgumentException.cs @@ -0,0 +1,22 @@ +namespace GameFrameX.Core.Abstractions.Exception; + +/// +/// 断言异常 +/// +public abstract class AssertionArgumentException : System.Exception +{ + /// + /// 错误码 + /// + public int ErrorCode { get; private set; } + + /// + /// 构造 + /// + /// 错误码 + /// 错误信息 + protected AssertionArgumentException(int errorCode, string message) : base(message) + { + ErrorCode = errorCode; + } +} \ No newline at end of file