* improved error handling
This commit is contained in:
parent
1fbbfcbb17
commit
3528f47a09
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue