public void validationError(int line,int charPositionInLine,String msg){
  parseIssues.add(new ParseIssue(line,charPositionInLine,msg,currentFileName,ParseIssueType.VALIDATION_ERROR));
  try {
    setAtLeastOneError(true);
    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);
  }
}

public void validationError ( int line , int charPositionInLine , String msg ) { parseIssues . add ( new ParseIssue ( line , charPositionInLine , msg , currentFileName , ParseIssueType . VALIDATION_ERROR ) ) ; try { setAtLeastOneError ( true ) ; 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 ) ; } }
validation error occurred . add the error to the list of parse issues .
