mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 16:40:30 +00:00
AbstractHafasClientInterfaceProvider: Handle Hafas kernel error 'H892'.
This commit is contained in:
parent
48ea599cfd
commit
907d7f5ad6
1 changed files with 3 additions and 0 deletions
|
@ -513,6 +513,9 @@ public abstract class AbstractHafasClientInterfaceProvider extends AbstractHafas
|
||||||
return new QueryTripsResult(header, QueryTripsResult.Status.NO_TRIPS);
|
return new QueryTripsResult(header, QueryTripsResult.Status.NO_TRIPS);
|
||||||
if ("H891".equals(err)) // No route found (try entering an intermediate station).
|
if ("H891".equals(err)) // No route found (try entering an intermediate station).
|
||||||
return new QueryTripsResult(header, QueryTripsResult.Status.NO_TRIPS);
|
return new QueryTripsResult(header, QueryTripsResult.Status.NO_TRIPS);
|
||||||
|
if ("H892".equals(err)) // HAFAS Kernel: Request too complex (try entering less intermediate
|
||||||
|
// stations).
|
||||||
|
return new QueryTripsResult(header, QueryTripsResult.Status.NO_TRIPS);
|
||||||
if ("H895".equals(err)) // Departure/Arrival are too near.
|
if ("H895".equals(err)) // Departure/Arrival are too near.
|
||||||
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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue