mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-13 16:20:34 +00:00
handle h2g error 892
This commit is contained in:
parent
7adae3ee55
commit
6d56a0c768
1 changed files with 3 additions and 0 deletions
|
@ -1919,6 +1919,9 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
||||||
else if (errorCode == 891)
|
else if (errorCode == 891)
|
||||||
// H891: Unfortunately there was no route found. Missing timetable data could be the reason.
|
// H891: Unfortunately there was no route found. Missing timetable data could be the reason.
|
||||||
return new QueryConnectionsResult(header, QueryConnectionsResult.Status.NO_CONNECTIONS);
|
return new QueryConnectionsResult(header, QueryConnectionsResult.Status.NO_CONNECTIONS);
|
||||||
|
else if (errorCode == 892)
|
||||||
|
// H892: Your inquiry was too complex. Please try entering less intermediate stations.
|
||||||
|
return new QueryConnectionsResult(header, QueryConnectionsResult.Status.NO_CONNECTIONS);
|
||||||
else if (errorCode == 899)
|
else if (errorCode == 899)
|
||||||
// H899: there was an unsuccessful or incomplete search due to a timetable change.
|
// H899: there was an unsuccessful or incomplete search due to a timetable change.
|
||||||
return new QueryConnectionsResult(header, QueryConnectionsResult.Status.NO_CONNECTIONS);
|
return new QueryConnectionsResult(header, QueryConnectionsResult.Status.NO_CONNECTIONS);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue