private void checkState() { if (queryContext.isStopped()) { Throwable throwable = queryContext.getThrowable(); if (throwable != null) { throw Throwables.propagate(throwable); } else { throw new IllegalStateException("the query is stopped: " + queryContext.getStopReason()); } } } }
private void checkState() { if (queryContext.isStopped()) { Throwable throwable = queryContext.getThrowable(); if (throwable != null) { throw Throwables.propagate(throwable); } else { throw new IllegalStateException("the query is stopped: " + queryContext.getStopReason()); } } } }