bmesser 2004/11/16 13:57:48 Modified: src/java/org/apache/lucene/store FSDirectory.java Log: change from RuntimeException (Exception e) to RuntimeException (String s) to be backward compatible with jdk 1.3 Revision Changes Path 1.37 +2 -2 jakarta-lucene/src/java/org/apache/lucene/store/FSDirectory.java Index: FSDirectory.java =================================================================== RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/store/FSDirectory.java,v retrieving revision 1.36 retrieving revision 1.37 diff -u -r1.36 -r1.37 --- FSDirectory.java 28 Sep 2004 20:45:26 -0000 1.36 +++ FSDirectory.java 16 Nov 2004 21:57:47 -0000 1.37 @@ -65,7 +65,7 @@ FSDirectory.class.getName()); IMPL = Class.forName(name); } catch (ClassNotFoundException e) { - throw new RuntimeException(e); + throw new RuntimeException("cannot load FSDirectory class: " + e.getMessage()); } } @@ -115,7 +115,7 @@ try { dir = (FSDirectory)IMPL.newInstance(); } catch (Exception e) { - throw new RuntimeException(e); + throw new RuntimeException("cannot load FSDirectory class: " + e.getMessage()); } dir.init(file, create); DIRECTORIES.put(file, dir);
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]