Object reinterpretQueryExecutionCanceledException() {
    final CacheRuntimeException queryCanceledException = getQueryCanceledException();
    if (queryCanceledException != null) {
      throw queryCanceledException;
    } else {
      throw new QueryExecutionCanceledException(
          "Query was canceled. It may be due to low memory or the query was running longer than the MAX_QUERY_EXECUTION_TIME.");
    }
  }
This method attempts to reintrepret a {@link QueryExecutionCanceledException} using the
the value returned by {@link #getQueryCanceledException} (set by the {@link QueryMonitor}).

@throws CacheRuntimeException if {@link #getQueryCanceledException} doesn't return {@code null}
@throws QueryExecutionCanceledException otherwise
geode-core/src/main/java/org/apache/geode/cache/query/internal/ExecutionContext.java