svn commit: r577512 - /xml/xindice/trunk/java/src/org/apache/xindice/core/query/TextQueryResolver.java

[email protected]
Newsgroups gmane.text.xml.xindice.devel
Message-ID <[email protected]>
Author: natalia
Date: Wed Sep 19 19:27:54 2007
New Revision: 577512

URL: http://svn.apache.org/viewvc?rev=577512&view=rev
Log:
Fix QueryException handling

Modified:
    xml/xindice/trunk/java/src/org/apache/xindice/core/query/TextQueryResolver.java

Modified: xml/xindice/trunk/java/src/org/apache/xindice/core/query/TextQueryResolver.java
URL: http://svn.apache.org/viewvc/xml/xindice/trunk/java/src/org/apache/xindice/core/query/TextQueryResolver.java?rev=577512&r1=577511&r2=577512&view=diff
==============================================================================
--- xml/xindice/trunk/java/src/org/apache/xindice/core/query/TextQueryResolver.java (original)
+++ xml/xindice/trunk/java/src/org/apache/xindice/core/query/TextQueryResolver.java Wed Sep 19 19:27:54 2007
@@ -75,6 +75,8 @@
                 }
                 Analyzer an = idx.getAnalyzer();
                 compiledQuery = new QueryParser("", an).parse(query);
+            } catch (QueryException e) {
+                throw e;
             } catch (DBException e) {
                 throw new QueryException(FaultCodes.QRY_COMPILATION_ERROR, "Failed to compile the query due to database error", e);
             } catch (ParseException e) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.