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