if (!waitResponse(requestClient)) {
if (requestClient.hasErrors()) {
if (requestClient.getErrorMessage().contains("pacing violation")) {
throw new PacingViolationException(requestClient.getErrorMessage(), requestClient.getException());
} else if (requestClient.getErrorMessage().contains("query returned no data")) {
throw new NoDataReturnedException(requestClient.getErrorMessage(), requestClient.getException());
}
throw new RequestFailedException(requestClient.getErrorMessage(), requestClient.getException());
}
throw new RequestFailedException();
}