mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-20 09:19:57 +00:00
Hafas: Handle h2g error 65535.
This commit is contained in:
parent
74d552d187
commit
57b76eda0f
1 changed files with 3 additions and 0 deletions
|
@ -2706,6 +2706,9 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider {
|
||||||
// H895: Departure/Arrival are too near
|
// H895: Departure/Arrival are too near
|
||||||
result.set(new QueryTripsResult(header, QueryTripsResult.Status.TOO_CLOSE));
|
result.set(new QueryTripsResult(header, QueryTripsResult.Status.TOO_CLOSE));
|
||||||
return;
|
return;
|
||||||
|
} else if (errorCode == 65535) {
|
||||||
|
result.set(new QueryTripsResult(header, QueryTripsResult.Status.SERVICE_DOWN));
|
||||||
|
return;
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalStateException("error " + errorCode + " on " + uri);
|
throw new IllegalStateException("error " + errorCode + " on " + uri);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue