afs commented on code in PR #3603:
URL: https://github.com/apache/jena/pull/3603#discussion_r2549402672
##########
jena-geosparql/src/main/java/org/apache/jena/geosparql/implementation/access/AccessGeoSPARQL.java:
##########
@@ -229,4 +231,11 @@ private static boolean containsGeoLiterals(Graph graph,
Node node) {
graph.contains(node, Geo.AS_GML_NODE, null);
return result;
}
+
+ public static RuntimeException buildException(RuntimeException e) {
+ if (e instanceof QueryCancelledException e2) {
+ return new QueryCancelledException(e2);
+ }
+ return new RuntimeException(e);
+ }
Review Comment:
See `QueryIterFailed`:
```suggestion
protected static QueryExecException buildException(RuntimeException
cause) {
return switch(cause) {
// Covered by next branch. case QueryCancelledException ex -> ex;
case QueryExecException ex -> ex;
default -> new QueryExecException(cause);
};
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]