mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-13 16:20:34 +00:00
throw IOException on repeated IO problem
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@315 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
6cf2c4c896
commit
934269395d
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue