public void reportError(RecognitionException e, String s) { antlrTool.error(s, e.getFilename(), e.getLine(), e.getColumn()); }
/** Delegates the error message to the tool if any was registered via * {@link #initTool(antlr.Tool)} * @since 2.7.2 */ public void reportError(RecognitionException e) { if (getTool() != null) { getTool().error(e.getErrorMessage(), e.getFilename(), e.getLine(), e.getColumn()); } else { super.reportError(e); } }
/** Delegates the error message to the tool if any was registered via * {@link #initTool(antlr.Tool)} * @since 2.7.2 */ public void reportError(RecognitionException e) { if (getTool() != null) { getTool().error(e.getErrorMessage(), e.getFilename(), e.getLine(), e.getColumn()); } else { super.reportError(e); } }
LOG.error("Error during code parsing for " + file + " at position " + caught.getFilename() + ":" + caught.getLine() + ":" + caught.getColumn(), (settings.displayStackTraceOnError() ? caught : null)); numFailures++; if (InputFileUtils.getRelativePath(file, context.fileSystem()).equals(caught.getFilename())) { try { strt = file.newPointer(caught.getLine(), caught.getColumn() - 1); NewAnalysisError analysisError = context.newAnalysisError(); analysisError.onFile(file); analysisError.message(Strings.nullToEmpty(caught.getMessage()) + " in " + caught.getFilename() + ":" + caught.getLine() + ":" + caught.getColumn()); if (strt != null) RuleKey.of(Constants.STD_REPOSITORY_KEY, OpenEdgeRulesDefinition.PROPARSE_ERROR_RULEKEY)); NewIssueLocation loc = issue.newLocation().on(file).message(Strings.nullToEmpty(caught.getMessage()) + " in " + caught.getFilename() + ":" + caught.getLine() + ":" + caught.getColumn()); if ((strt != null) && (end != null)) loc.at(file.newRange(strt, end));