* improved error handling

This commit is contained in:
Reinhard Pointner 2014-08-17 18:05:52 +00:00
parent 1fbbfcbb17
commit 3528f47a09
1 changed files with 2 additions and 2 deletions

View File

@ -35,8 +35,8 @@ public class CachedXmlResource extends AbstractCachedResource<String, String> {
public Document getDocument() throws IOException { public Document getDocument() throws IOException {
try { try {
return WebRequest.getDocument(get()); return WebRequest.getDocument(get());
} catch (SAXException e) { } catch (Exception e) {
throw new RuntimeException(e); throw new IOException("Error while loading XML resource: " + e.getMessage(), e);
} }
} }