mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 00:30:31 +00:00
AbstractHafasClientInterfaceProvider: Handle CGI_READ_FAILED error in jsonTripSearch().
This commit is contained in:
parent
b370effeae
commit
667166bbc9
1 changed files with 2 additions and 0 deletions
|
@ -514,6 +514,8 @@ public abstract class AbstractHafasClientInterfaceProvider extends AbstractHafas
|
|||
return new QueryTripsResult(header, QueryTripsResult.Status.SERVICE_DOWN);
|
||||
if ("LOCATION".equals(err) && "HCI Service: location missing or invalid".equals(errTxt))
|
||||
return new QueryTripsResult(header, QueryTripsResult.Status.UNKNOWN_LOCATION);
|
||||
if ("CGI_READ_FAILED".equals(err))
|
||||
return new QueryTripsResult(header, QueryTripsResult.Status.SERVICE_DOWN);
|
||||
throw new RuntimeException(err + (errTxt != null ? " " + errTxt : ""));
|
||||
}
|
||||
final JSONObject res = svcRes.getJSONObject("res");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue