Example #1
0
 private static string MessageHelper(string message, LineInfo lineInfo)
 {
     return String.Concat(message ?? "Unknown parser error.", " ", lineInfo ?? LineInfo.NullValue);
 }
Example #2
0
		public ParserException(LineInfo lineInfo) : base(MessageHelper(null, lineInfo))
		{
			LineInfo = lineInfo;
		}
Example #3
0
		public ParserException(string message, Exception inner, LineInfo lineInfo) : base(MessageHelper(message, lineInfo), inner)
		{
			LineInfo = lineInfo;
		}
Example #4
0
 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);
 }