mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-12 18:38:49 +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
|
||||
.emptyToNull(message.toString())));
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new IllegalStateException("unhandled type: " + type);
|
||||
}
|
||||
}
|
||||
int changes = route.getInt("changes");
|
||||
List<Fare> fares = parseFare(route.optJSONObject("costs"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue