code: public static ParseException atPosition(String errorMessage, String logMessage, int position) {
      return new ParseException(msg(errorMessage, logMessage, position, position + 1), logMessage);
    }
docs: Creates a new parse exception for situations in which the position of the error is known.
  
  @param errorMessage the user error message.
  @param logMessage the original log message.
  @param position the index of the invalid character in the log message.
  @return the parser exception.