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) {