xtern commented on code in PR #4867: URL: https://github.com/apache/ignite-3/pull/4867#discussion_r1880063940
########## modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/QueryCancelledException.java: ########## @@ -56,4 +56,11 @@ public QueryCancelledException(String message) { public QueryCancelledException(@Nullable Throwable cause) { super(EXECUTION_CANCELLED_ERR, CANCEL_MSG, cause); } + + /** + * Constructor that preserves correct error message. + */ + public QueryCancelledException(QueryCancelledException cause) { Review Comment: I don't think that's good idea to lose original exception stacktrace. We just need rethrow the original exception. -- 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: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org