sk0x50 commented on code in PR #4070:
URL: https://github.com/apache/ignite-3/pull/4070#discussion_r1677547200


##########
modules/core/src/main/java/org/apache/ignite/internal/lang/IgniteExceptionMapperUtil.java:
##########
@@ -115,7 +136,7 @@ public static Throwable mapToPublicException(Throwable 
origin) {
         }
 
         // There are no exception mappings for the given exception. This case 
should be considered as internal error.
-        return new IgniteException(INTERNAL_ERR, origin);
+        return unknownProblemMapper.apply(origin);

Review Comment:
   Should we check that `unknownProblemMapper` returns an instance of the 
`public` 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to