1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

* improved error handling

This commit is contained in:
Reinhard Pointner 2014-08-17 18:05:52 +00:00
parent 1fbbfcbb17
commit 3528f47a09

View File

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