You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2008/04/09 20:54:18 UTC

svn commit: r646482 - /lenya/trunk/src/modules/lucene/java/src/org/apache/cocoon/components/search/components/impl/AbstractIndexer.java

Author: andreas
Date: Wed Apr  9 11:54:17 2008
New Revision: 646482

URL: http://svn.apache.org/viewvc?rev=646482&view=rev
Log:
Wrap IllegalStateException in IndexException so that the error handling isn't bypassed.

Modified:
    lenya/trunk/src/modules/lucene/java/src/org/apache/cocoon/components/search/components/impl/AbstractIndexer.java

Modified: lenya/trunk/src/modules/lucene/java/src/org/apache/cocoon/components/search/components/impl/AbstractIndexer.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/lucene/java/src/org/apache/cocoon/components/search/components/impl/AbstractIndexer.java?rev=646482&r1=646481&r2=646482&view=diff
==============================================================================
--- lenya/trunk/src/modules/lucene/java/src/org/apache/cocoon/components/search/components/impl/AbstractIndexer.java (original)
+++ lenya/trunk/src/modules/lucene/java/src/org/apache/cocoon/components/search/components/impl/AbstractIndexer.java Wed Apr  9 11:54:17 2008
@@ -326,7 +326,7 @@
     final protected void openIndexReader() throws IndexException {
         try {
 	    if (this.dir == null) {
-	        throw new IllegalStateException("Index directory not set.");
+	        throw new IndexException(new IllegalStateException("Index directory not set."));
 	    }
             this.delete_reader = IndexReader.open(dir);
         } catch (IOException e) {



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org