improved the error handling

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21858 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-09-18 18:09:11 +00:00
1 parent 112ad0089c
commit d3b5cde166
1 file changed
+4
+4
View File
@@ -128,6 +128,8 @@ public final class XmlFile {
throw new IOException2("Unable to read "+file,e);
} catch(ConversionException e) {
throw new IOException2("Unable to read "+file,e);
} catch(Error e) {// mostly reflection errors
throw new IOException2("Unable to read "+file,e);
} finally {
r.close();
}
@@ -148,6 +150,8 @@ public final class XmlFile {
throw new IOException2(e);
} catch(ConversionException e) {
throw new IOException2("Unable to read "+file,e);
} catch(Error e) {// mostly reflection errors
throw new IOException2("Unable to read "+file,e);
} finally {
r.close();
}