mirror of https://github.com/apache/lucene.git
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:
parent
2902fa2562
commit
1515574bff
|
@ -100,7 +100,7 @@ class SegmentReader extends IndexReader {
|
|||
SegmentReader.class.getName());
|
||||
IMPL = Class.forName(name);
|
||||
} 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 {
|
||||
instance = (SegmentReader)IMPL.newInstance();
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
throw new RuntimeException("cannot load SegmentReader class: " + e.getMessage());
|
||||
}
|
||||
instance.init(dir, sis, closeDir, ownDir);
|
||||
instance.initialize(si);
|
||||
|
|
|
@ -65,7 +65,7 @@ public class FSDirectory extends Directory {
|
|||
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 @@ public class FSDirectory extends Directory {
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue