private static string MessageHelper(string message, LineInfo lineInfo) { return String.Concat(message ?? "Unknown parser error.", " ", lineInfo ?? LineInfo.NullValue); }
public ParserException(LineInfo lineInfo) : base(MessageHelper(null, lineInfo)) { LineInfo = lineInfo; }
public ParserException(string message, Exception inner, LineInfo lineInfo) : base(MessageHelper(message, lineInfo), inner) { LineInfo = lineInfo; }
public static Token ScanControl(string text, LineInfo line) { if (text == Select || text == Skip || text == Top || text == Sort || text == ReverseSort || text == Autofilters || text == Lifespan || text == CountOnly) return Token.ControlKeyword; throw new ParserException("Unknown control keyword: " + text, line); }