mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-16 17:39:49 +00:00
Hafas: Handle JSON API error H9360 'Date outside of the timetable period'.
This commit is contained in:
parent
c1a309f938
commit
db5bbd9228
1 changed files with 2 additions and 0 deletions
|
@ -1153,6 +1153,8 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
|||
return new QueryTripsResult(header, QueryTripsResult.Status.TOO_CLOSE);
|
||||
if ("H9220".equals(err)) // Nearby to the given address stations could not be found.
|
||||
return new QueryTripsResult(header, QueryTripsResult.Status.UNRESOLVABLE_ADDRESS);
|
||||
if ("H9360".equals(err)) // Date outside of the timetable period.
|
||||
return new QueryTripsResult(header, QueryTripsResult.Status.INVALID_DATE);
|
||||
final String errTxt = svcRes.getString("errTxt");
|
||||
throw new RuntimeException(err + ": " + errTxt);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue