mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 16:40:30 +00:00
Hafas: Handle h2g errors 9280 and 9300.
This commit is contained in:
parent
f12c9db7e9
commit
07a0b8b535
1 changed files with 7 additions and 1 deletions
|
@ -2055,8 +2055,14 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
||||||
// or with the selected means of transport on the required date/time.
|
// or with the selected means of transport on the required date/time.
|
||||||
return new QueryTripsResult(header, QueryTripsResult.Status.NO_TRIPS);
|
return new QueryTripsResult(header, QueryTripsResult.Status.NO_TRIPS);
|
||||||
else if (errorCode == 9260)
|
else if (errorCode == 9260)
|
||||||
// Unknown departure station
|
// H9260: Unknown departure station
|
||||||
return new QueryTripsResult(header, QueryTripsResult.Status.UNKNOWN_FROM);
|
return new QueryTripsResult(header, QueryTripsResult.Status.UNKNOWN_FROM);
|
||||||
|
else if (errorCode == 9280)
|
||||||
|
// H9280: Unknown intermediate station
|
||||||
|
return new QueryTripsResult(header, QueryTripsResult.Status.UNKNOWN_VIA);
|
||||||
|
else if (errorCode == 9300)
|
||||||
|
// H9300: Unknown arrival station
|
||||||
|
return new QueryTripsResult(header, QueryTripsResult.Status.UNKNOWN_TO);
|
||||||
else if (errorCode == 9320)
|
else if (errorCode == 9320)
|
||||||
// The input is incorrect or incomplete
|
// The input is incorrect or incomplete
|
||||||
return new QueryTripsResult(header, QueryTripsResult.Status.INVALID_DATE);
|
return new QueryTripsResult(header, QueryTripsResult.Status.INVALID_DATE);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue