mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-02 08:25:02 -04:00
* 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 {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user