revert Koji's revert of ryan's exception chaining -- but this time using java 1.5

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@734860 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris M. Hostetter 2009-01-15 23:51:20 +00:00
parent 38b37b1942
commit 088ad18d2b
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ class XMLLoader extends ContentStreamLoader {
}
catch (XMLStreamException e) {
//Hmmm, not quite right
throw new IOException(e.getMessage());
throw (IOException) new IOException(e.getMessage()).initCause(e);
} finally {
IOUtils.closeQuietly(reader);
}