We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fd716d commit bef924bCopy full SHA for bef924b
GameFrameX.Core.Abstractions/Exception/AssertionArgumentException.cs
@@ -0,0 +1,22 @@
1
+namespace GameFrameX.Core.Abstractions.Exception;
2
+
3
+/// <summary>
4
+/// 断言异常
5
+/// </summary>
6
+public abstract class AssertionArgumentException : System.Exception
7
+{
8
+ /// <summary>
9
+ /// 错误码
10
+ /// </summary>
11
+ public int ErrorCode { get; private set; }
12
13
14
+ /// 构造
15
16
+ /// <param name="errorCode">错误码</param>
17
+ /// <param name="message">错误信息</param>
18
+ protected AssertionArgumentException(int errorCode, string message) : base(message)
19
+ {
20
+ ErrorCode = errorCode;
21
+ }
22
+}
0 commit comments