MCPcopy Create free account
hub / github.com/apache/pig / checkError

Method checkError

src/org/apache/pig/parser/QueryParserDriver.java:226–232  ·  view source on GitHub ↗
(BaseRecognizer recognizer)

Source from the content-addressed store, hash-verified

224 }
225
226 private static void checkError(BaseRecognizer recognizer)
227 throws ParserException {
228 int errorCount = recognizer.getNumberOfSyntaxErrors();
229 if (0 < errorCount)
230 throw new ParserException("Encountered " + errorCount
231 + " parsing errors in the query");
232 }
233
234 static Tree parse(CommonTokenStream tokens) throws ParserException {
235 QueryParser parser = QueryParserUtils.createParser(tokens);

Callers 5

parseSchemaMethod · 0.95
parseConstantMethod · 0.95
parseMethod · 0.95
tokenizeMethod · 0.95
validateAstMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected