private EventQueryResponseBase validatePagedResponse(final BaseQueryResponse response) { final EventQueryResponseBase pagedResponse; if (response instanceof EventQueryResponseBase) { pagedResponse = (EventQueryResponseBase) response; } else { final EventQueryResponseBase er = responseObjectFactory.getEventQueryResponse(); er.addMessage("Unhandled response type from Query/createQueryAndNext"); throw new PreConditionFailedException(null, er); } return pagedResponse; }
throw new PreConditionFailedException(null, response);
throw new PreConditionFailedException(e, null);
EventQueryResponseBase er = responseObjectFactory.getEventQueryResponse(); er.addMessage("Unhandled response type " + contentQueryResponse + " from ContentQuery"); throw new PreConditionFailedException(null, er);
log.error(qe); response.addException(qe.getBottomQueryException()); throw new PreConditionFailedException(qe, response);
response.addException(e); response.setResult("CachedResult not found"); throw new PreConditionFailedException(e, response);
response.addException(e); response.setResult("Error loading results into cache"); throw new PreConditionFailedException(e, response);