67 |
beans = fetcher.cachedLookupDepartures(station); |
beans = fetcher.cachedLookupDepartures(station); |
68 |
} catch (java.io.IOException ioe) { |
} catch (java.io.IOException ioe) { |
69 |
logger.warning("Read failed, station="+station + ". " + ioe.getMessage() ); |
logger.warning("Read failed, station="+station + ". " + ioe.getMessage() ); |
70 |
|
Statistics.getInstance().incrementDepartureErrors(); |
71 |
resp.sendError(500); |
resp.sendError(500); |
72 |
return; |
return; |
73 |
} catch (CircuitBreakerException cbe) { |
} catch (CircuitBreakerException cbe) { |
74 |
logger.warning("Circuitbreaker - failing fast"); |
logger.warning("Circuitbreaker - failing fast"); |
75 |
|
Statistics.getInstance().incrementDepartureErrors(); |
76 |
resp.sendError(500); |
resp.sendError(500); |
77 |
return; |
return; |
78 |
} catch (Exception e) { |
} catch (Exception e) { |
79 |
logger.log(Level.WARNING, "Unknown exception, station=" +station, e); |
logger.log(Level.WARNING, "Unknown exception, station=" +station, e); |
80 |
|
Statistics.getInstance().incrementDepartureErrors(); |
81 |
resp.sendError(500); |
resp.sendError(500); |
82 |
return; |
return; |
83 |
} |
} |