feat: initial commit - HJHA game server full source
6 major server modules (PdkFriendServer/GlobalSever/ServerCore/GameModule/GameNetModule) + game logic (GameFix/GameDAL/ServerData) + network layer (NetWorkMessage) + data layer (ObjectModel) + utilities (MrWu/Core/Config/CloudAPI/dll) + adapters (zyxAdapter/base) .NET 8.0 C# solution, 16 projects, 958 source files
This commit is contained in:
29
GameDAL/ExpressionsParser/LambdaParserException.cs
Normal file
29
GameDAL/ExpressionsParser/LambdaParserException.cs
Normal file
@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace ExpressionsParser {
|
||||
|
||||
/// <summary>
|
||||
/// The exception that is thrown when lambda expression parse error occurs
|
||||
/// </summary>
|
||||
public class LambdaParserException : Exception {
|
||||
|
||||
/// <summary>
|
||||
/// Lambda expression
|
||||
/// </summary>
|
||||
public string Expression { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Parser position where syntax error occurs
|
||||
/// </summary>
|
||||
public int Index { get; private set; }
|
||||
|
||||
public LambdaParserException(string expr, int idx, string msg)
|
||||
: base( string.Format("{0} at {1}: {2}", msg, idx, expr) ) {
|
||||
Expression = expr;
|
||||
Index = idx;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user