ygerzhedovich commented on code in PR #2616:
URL: https://github.com/apache/ignite-3/pull/2616#discussion_r1337076620
##########
modules/core/src/main/java/org/apache/ignite/lang/IgniteExceptionMapperUtil.java:
##########
@@ -137,4 +140,22 @@ public static <T> CompletableFuture<T>
convertToPublicFuture(CompletableFuture<T
private static <T extends Exception, R extends Exception> Exception
map(IgniteExceptionMapper<T, R> mapper, Throwable t) {
return mapper.map(mapper.mappingFrom().cast(t));
}
+
+ /**
+ * Assert that passed exception is not related to internal exceptions.
+ *
+ * @param ex Exception to be checked.
+ * @return {@code true} if canonical name of passed Exception doesn't
contains word 'internal'.
+ * @throws AssertionError in case assertions is enabled and passed
exception is fail check.
+ */
+ public static boolean assertInternal(Throwable ex) {
Review Comment:
ok, remove it.
Unfortunately static analyze can't be used here due to complicated the
problem.
--
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]