Skip to content

Commit aaace31

Browse files
committed
IGNITE-28000 Fix ClientSql handleException in async method.
** It was not forcing public exceptions.
1 parent 7004a39 commit aaace31

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • modules/client/src/main/java/org/apache/ignite/internal/client/sql

modules/client/src/main/java/org/apache/ignite/internal/client/sql/ClientSql.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import static org.apache.ignite.internal.client.proto.ProtocolBitmaskFeature.TX_PIGGYBACK;
2929
import static org.apache.ignite.internal.util.ExceptionUtils.sneakyThrow;
3030
import static org.apache.ignite.internal.util.ExceptionUtils.unwrapCause;
31+
import static org.apache.ignite.internal.util.ViewUtils.ensurePublicException;
3132
import static org.apache.ignite.internal.util.ViewUtils.sync;
3233

3334
import com.github.benmanes.caffeine.cache.Cache;
@@ -663,7 +664,8 @@ private static void packProperties(
663664
}
664665

665666
private static <T> T handleException(Throwable e) {
666-
Throwable ex = unwrapCause(e);
667+
Throwable ex = ensurePublicException(unwrapCause(e));
668+
667669
if (ex instanceof TransactionException) {
668670
var te = (TransactionException) ex;
669671
throw new SqlException(te.traceId(), te.code(), te.getMessage(), te);

0 commit comments

Comments
 (0)