change from RuntimeException (Exception e) to RuntimeException (String s) to be backward compatible with jdk 1.3

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150644 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bernhard Messer 2004-11-16 21:57:47 +00:00
parent 2902fa2562
commit 1515574bff
2 changed files with 4 additions and 4 deletions

View File

@ -100,7 +100,7 @@ class SegmentReader extends IndexReader {
SegmentReader.class.getName()); SegmentReader.class.getName());
IMPL = Class.forName(name); IMPL = Class.forName(name);
} catch (ClassNotFoundException e) { } catch (ClassNotFoundException e) {
throw new RuntimeException(e); throw new RuntimeException("cannot load SegmentReader class: " + e.getMessage());
} }
} }
@ -123,7 +123,7 @@ class SegmentReader extends IndexReader {
try { try {
instance = (SegmentReader)IMPL.newInstance(); instance = (SegmentReader)IMPL.newInstance();
} catch (Exception e) { } catch (Exception e) {
throw new RuntimeException(e); throw new RuntimeException("cannot load SegmentReader class: " + e.getMessage());
} }
instance.init(dir, sis, closeDir, ownDir); instance.init(dir, sis, closeDir, ownDir);
instance.initialize(si); instance.initialize(si);

View File

@ -65,7 +65,7 @@ public class FSDirectory extends Directory {
FSDirectory.class.getName()); FSDirectory.class.getName());
IMPL = Class.forName(name); IMPL = Class.forName(name);
} catch (ClassNotFoundException e) { } catch (ClassNotFoundException e) {
throw new RuntimeException(e); throw new RuntimeException("cannot load FSDirectory class: " + e.getMessage());
} }
} }
@ -115,7 +115,7 @@ public class FSDirectory extends Directory {
try { try {
dir = (FSDirectory)IMPL.newInstance(); dir = (FSDirectory)IMPL.newInstance();
} catch (Exception e) { } catch (Exception e) {
throw new RuntimeException(e); throw new RuntimeException("cannot load FSDirectory class: " + e.getMessage());
} }
dir.init(file, create); dir.init(file, create);
DIRECTORIES.put(file, dir); DIRECTORIES.put(file, dir);