/**
* Syntax error occurred. Add the error to the list of parse issues.
*/
@Override
public void syntaxError(Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine,
String msg, RecognitionException e) {
parseIssues.add(new ParseIssue(line, charPositionInLine, msg, currentFileName, ParseIssueType.SYNTAX_ERROR));
try {
setAtLeastOneError(true);
// Print error messages with file name
if (currentFileName == null)
log.error("line " + line + ":" + charPositionInLine + " " + msg);
else {
String fileName = currentFileName;
log.error(fileName + " line " + line + ":" + charPositionInLine + " " + msg);
}
} catch (Exception e1) {
log.error("ERROR: while customizing error message:" + e1);
}
}
CustomErrorListener.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:systemml
作者:
评论列表
文章目录