lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehatc...@apache.org
Subject cvs commit: jakarta-lucene-sandbox/contributions/snowball/src/java/org/apache/lucene/analysis/snowball SnowballFilter.java
Date Sun, 01 Jun 2003 05:11:39 GMT
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


Mime
View raw message