mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-18 16:29:51 +00:00
try to detect IO problems and throw IOException in case
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@312 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
98ceed52f8
commit
c84b8fdbaa
6 changed files with 29 additions and 9 deletions
|
@ -218,7 +218,7 @@ public final class BahnProvider implements NetworkProvider
|
|||
else if (type.equals("REQ0JourneyStops1.0K"))
|
||||
viaAddresses = addresses;
|
||||
else
|
||||
throw new IOException(type);
|
||||
throw new IllegalStateException(type);
|
||||
}
|
||||
|
||||
if (fromAddresses != null || viaAddresses != null || toAddresses != null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue