AbstractHafasClientInterfaceProvider: Handle Hafas kernel error 'H887'.

This commit is contained in:
Andreas Schildbach 2018-12-01 17:24:03 +01:00
parent 15d3b40125
commit 3591f05aa3

View file

@ -517,6 +517,8 @@ public abstract class AbstractHafasClientInterfaceProvider extends AbstractHafas
return new QueryTripsResult(header, QueryTripsResult.Status.TOO_CLOSE); return new QueryTripsResult(header, QueryTripsResult.Status.TOO_CLOSE);
if ("H9220".equals(err)) // Nearby to the given address stations could not be found. if ("H9220".equals(err)) // Nearby to the given address stations could not be found.
return new QueryTripsResult(header, QueryTripsResult.Status.UNRESOLVABLE_ADDRESS); return new QueryTripsResult(header, QueryTripsResult.Status.UNRESOLVABLE_ADDRESS);
if ("H887".equals(err)) // HAFAS Kernel: Kernel computation time limit reached.
return new QueryTripsResult(header, QueryTripsResult.Status.SERVICE_DOWN);
if ("H9240".equals(err)) // HAFAS Kernel: Internal error. if ("H9240".equals(err)) // HAFAS Kernel: Internal error.
return new QueryTripsResult(header, QueryTripsResult.Status.SERVICE_DOWN); return new QueryTripsResult(header, QueryTripsResult.Status.SERVICE_DOWN);
if ("H9360".equals(err)) // Date outside of the timetable period. if ("H9360".equals(err)) // Date outside of the timetable period.