File tree Expand file tree Collapse file tree
modules/client/src/main/java/org/apache/ignite/internal/client/sql Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828import static org .apache .ignite .internal .client .proto .ProtocolBitmaskFeature .TX_PIGGYBACK ;
2929import static org .apache .ignite .internal .util .ExceptionUtils .sneakyThrow ;
3030import static org .apache .ignite .internal .util .ExceptionUtils .unwrapCause ;
31+ import static org .apache .ignite .internal .util .ViewUtils .ensurePublicException ;
3132import static org .apache .ignite .internal .util .ViewUtils .sync ;
3233
3334import 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 );
You can’t perform that action at this time.
0 commit comments