mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-12 21:08:49 +00:00
Hafas: Handle h2g error 207.
This commit is contained in:
parent
42e9d39c56
commit
d934dfa0d4
1 changed files with 3 additions and 0 deletions
|
@ -2025,6 +2025,9 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
|||
throw new SessionExpiredException();
|
||||
else if (errorCode == 8)
|
||||
return new QueryTripsResult(header, QueryTripsResult.Status.AMBIGUOUS);
|
||||
else if (errorCode == 207)
|
||||
// H207: Unfortunately your connection request can currently not be processed.
|
||||
return new QueryTripsResult(header, QueryTripsResult.Status.SERVICE_DOWN);
|
||||
else if (errorCode == 887)
|
||||
// H887: Your inquiry was too complex. Please try entering less intermediate stations.
|
||||
return new QueryTripsResult(header, QueryTripsResult.Status.NO_TRIPS);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue