Files
hjha-server/GameDAL/ExpressionsParser/LambdaParserException.cs
xiaoou e9616125ce 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
2026-07-07 12:02:15 +08:00

30 lines
716 B
C#

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;
}
}
}