/** * Logs and gets error call back on the response with the provided error message. * * @param message The error message passed to the logger and the exception * @param query The query with the schema for processing this response */ private void logAndGetErrorCallback(String message, DruidAggregationQuery<?> query) { LOG.error(message); getErrorCallback(query).dispatch( INTERNAL_SERVER_ERROR.getStatusCode(), ErrorMessageFormat.INTERNAL_SERVER_ERROR_REASON_PHRASE.format(), message ); } }
logAndGetErrorCallback(ErrorMessageFormat.STATUS_CODE_MISSING_FROM_RESPONSE.format(), druidQuery); return; ); } catch (IOException ioe) { logAndGetErrorCallback(ioe.getLocalizedMessage(), druidQuery); return; ); } catch (JsonProcessingException exception) { logAndGetErrorCallback("Unable to parse JSON response while caching", druidQuery); return;
nextResponse = new EtagCacheResponseProcessor( response, cacheKey,