diff --git a/src/de/schildbach/pte/util/ParserUtils.java b/src/de/schildbach/pte/util/ParserUtils.java index 49ba9e9b..1ffa06e1 100644 --- a/src/de/schildbach/pte/util/ParserUtils.java +++ b/src/de/schildbach/pte/util/ParserUtils.java @@ -137,7 +137,7 @@ public final class ParserUtils if (tries-- > 0) System.out.println("got empty page, retrying..."); else - throw new RuntimeException("got empty page: " + url); + throw new IOException("got empty page: " + url); } } catch (final SocketTimeoutException x) @@ -145,7 +145,7 @@ public final class ParserUtils if (tries-- > 0) System.out.println("socket timed out, retrying..."); else - throw new RuntimeException(x); + throw x; } } }