Grokbase Groups Lucene dev June 2003
FAQ
ehatcher 2003/05/31 22:11:39

Modified: contributions/snowball/src/java/org/apache/lucene/analysis/snowball
SnowballFilter.java
Log:
add error more descriptive exception handling

Revision Changes Path
1.4 +2 -2 jakarta-lucene-sandbox/contributions/snowball/src/java/org/apache/lucene/analysis/snowball/SnowballFilter.java

Index: SnowballFilter.java
===================================================================
RCS file: /home/cvs/jakarta-lucene-sandbox/contributions/snowball/src/java/org/apache/lucene/analysis/snowball/SnowballFilter.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- SnowballFilter.java 29 May 2003 17:20:18 -0000 1.3
+++ SnowballFilter.java 1 Jun 2003 05:11:39 -0000 1.4
@@ -91,7 +91,7 @@
stemmer = (SnowballProgram) stemClass.newInstance();
stemMethod = stemClass.getMethod("stem", new Class[0]);
} catch (Exception e) {
- throw new RuntimeException();
+ throw new RuntimeException(e.toString());
}
}

@@ -104,7 +104,7 @@
try {
stemMethod.invoke(stemmer, EMPTY_ARGS);
} catch (Exception e) {
- throw new RuntimeException();
+ throw new RuntimeException(e.toString());
}
return new Token(stemmer.getCurrent(),
token.startOffset(), token.endOffset(), token.type());




---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categorieslucene
postedJun 1, '03 at 5:11a
activeJun 1, '03 at 5:11a
posts1
users1
websitelucene.apache.org

1 user in discussion

Ehatcher: 1 post

People

Translate

site design / logo © 2022 Grokbase