/** * Helper to throw Response Error for create/define Query */ private void throwBadRequest(DatawaveErrorCode ec, GenericResponse<String> response) { BadRequestQueryException qe = new BadRequestQueryException(ec); response.addException(qe); throw new BadRequestException(qe, response); }
BadRequestQueryException qe = new BadRequestQueryException(DatawaveErrorCode.QUERY_REGEX_OR_USER_REQUIRED); response.addException(qe); throw new BadRequestException(qe, response); } else if (queryRegex == null) { traceInfos.removeAll(user);
BadRequestQueryException qe = new BadRequestQueryException(DatawaveErrorCode.QUERY_REGEX_OR_USER_REQUIRED); response.addException(qe); throw new BadRequestException(qe, response); } else { PatternWrapper p = PatternWrapper.wrap(queryRegex);
response.addException(qe.getBottomQueryException()); if (e.getClass() == IllegalArgumentException.class) { throw new BadRequestException(qe, response);
public <T> T lookupUUIDBatch(MultivaluedMap<String,String> queryParameters, @Required("httpHeaders") @Context HttpHeaders httpHeaders) { if (!queryParameters.containsKey("uuidPairs")) { throw new BadRequestException(new IllegalArgumentException("uuidPairs missing from query parameters"), new VoidResponse());
public <T> T lookupContentByUUIDBatch(MultivaluedMap<String,String> queryParameters, HttpHeaders httpHeaders) { if (!queryParameters.containsKey("uuidPairs")) { throw new BadRequestException(new IllegalArgumentException("uuidPairs missing from query parameters"), new VoidResponse());
response.addException(qe.getBottomQueryException()); if (e.getClass() == IllegalArgumentException.class) { throw new BadRequestException(qe, response);
service.getRequestClass().getName())); response.addException(qe); throw new BadRequestException(qe, response);
throw new BadRequestException(e, response);
throw new BadRequestException(new IllegalArgumentException(OozieJobConstants.WORKFLOW_PARAM + " parameter missing"), response); BadRequestQueryException qe = new BadRequestQueryException(DatawaveErrorCode.JOB_CONFIGURATION_ERROR, e); response.addException(qe); throw new BadRequestException(qe, response); BadRequestQueryException qe = new BadRequestQueryException(DatawaveErrorCode.MISSING_REQUIRED_PARAMETER, e); response.addException(qe); throw new BadRequestException(qe, response); } catch (Exception e) { log.error("Error auditing query", e); response.addMessage("Error auditing query - " + e.getMessage()); throw new BadRequestException(e, response);
BadRequestQueryException qe = new BadRequestQueryException(DatawaveErrorCode.MISSING_REQUIRED_PARAMETER, e); response.addException(qe); throw new BadRequestException(qe, response); } catch (Exception e) { QueryException qe = new QueryException(DatawaveErrorCode.QUERY_AUDITING_ERROR, e);
BadRequestQueryException qe = new BadRequestQueryException(DatawaveErrorCode.JOB_CONFIGURATION_ERROR, e); response.addException(qe); throw new BadRequestException(qe, response);
GenericResponse<String> response = new GenericResponse<>(); response.addException(qe.getBottomQueryException()); throw new BadRequestException(qe, response); GenericResponse<String> response = new GenericResponse<>(); response.addException(qe); throw new BadRequestException(qe, response); GenericResponse<String> response = new GenericResponse<>(); response.addException(qe); throw new BadRequestException(qe, response);
BadRequestQueryException qe = new BadRequestQueryException(DatawaveErrorCode.MISSING_REQUIRED_PARAMETER, e); response.addException(qe); throw new BadRequestException(qe, response); } catch (Exception e) { log.error("Error auditing query", e);
BadRequestQueryException qe = new BadRequestQueryException(DatawaveErrorCode.MISSING_REQUIRED_PARAMETER, e); response.addException(qe); throw new BadRequestException(qe, response); } catch (Exception e) { log.error("Error auditing query", e);