From 934269395d5676a12b4b75e53d27a708a48e37c8 Mon Sep 17 00:00:00 2001 From: "andreas.schildbach" Date: Fri, 22 Oct 2010 20:21:43 +0000 Subject: [PATCH] throw IOException on repeated IO problem git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@315 0924bc21-9374-b0fa-ee44-9ff1593b38f0 --- src/de/schildbach/pte/util/ParserUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } } }