mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-12 22:18:48 +00:00
VRS: Throw exception on unhandled segment type.
This commit is contained in:
parent
e772bce41e
commit
cc55fb4725
1 changed files with 4 additions and 0 deletions
|
@ -942,6 +942,10 @@ public class VrsProvider extends AbstractNetworkProvider
|
||||||
arrivalPredicted, segmentDestinationPosition, segmentDestinationPosition), intermediateStops, points, Strings
|
arrivalPredicted, segmentDestinationPosition, segmentDestinationPosition), intermediateStops, points, Strings
|
||||||
.emptyToNull(message.toString())));
|
.emptyToNull(message.toString())));
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
throw new IllegalStateException("unhandled type: " + type);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
int changes = route.getInt("changes");
|
int changes = route.getInt("changes");
|
||||||
List<Fare> fares = parseFare(route.optJSONObject("costs"));
|
List<Fare> fares = parseFare(route.optJSONObject("costs"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue