otis 02/02/22 13:06:17 Modified: src/java/org/apache/lucene/queryParser QueryParser.jj Log: - Added exceptions to the Javadoc for parse methods. - Added TokenMgrError to parse methods' throws clauses, since that is thrown when the input is bad. Submitted by: Daniel Calvo Revision Changes Path 1.15 +6 -2 jakarta-lucene/src/java/org/apache/lucene/queryParser/QueryParser.jj Index: QueryParser.jj =================================================================== RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/queryParser/QueryParser.jj,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- QueryParser.jj 19 Feb 2002 00:44:00 -0000 1.14 +++ QueryParser.jj 22 Feb 2002 21:06:16 -0000 1.15 @@ -110,9 +110,11 @@ * @param query the query string to be parsed. * @param field the default field for query terms. * @param analyzer used to find terms in the query text. + * @throws ParseException if the parsing fails + * @throws TokenMgrError if the parsing fails */ static public Query parse(String query, String field, Analyzer analyzer) - throws ParseException { + throws ParseException, TokenMgrError { QueryParser parser = new QueryParser(field, analyzer); return parser.parse(query); } @@ -134,8 +136,10 @@ /** Parses a query string, returning a * <a href="lucene.search.Query.html">Query</a>. * @param query the query string to be parsed. + * @throws ParseException if the parsing fails + * @throws TokenMgrError if ther parsing fails */ - public Query parse(String query) throws ParseException { + public Query parse(String query) throws ParseException, TokenMgrError { ReInit(new FastCharStream(new StringReader(query))); return Query(field); }
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>