handle h2g error 892

This commit is contained in:
Andreas Schildbach 2012-12-21 12:32:11 +01:00
parent 7adae3ee55
commit 6d56a0c768

View file

@ -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);