Hafas: Handle h2g error 65535.

This commit is contained in:
Andreas Schildbach 2016-09-25 18:22:30 +02:00
parent 74d552d187
commit 57b76eda0f

View file

@ -2706,6 +2706,9 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider {
// H895: Departure/Arrival are too near
result.set(new QueryTripsResult(header, QueryTripsResult.Status.TOO_CLOSE));
return;
} else if (errorCode == 65535) {
result.set(new QueryTripsResult(header, QueryTripsResult.Status.SERVICE_DOWN));
return;
} else {
throw new IllegalStateException("error " + errorCode + " on " + uri);
}