ExceptionUtil { @Nonnull public static RuntimeException rethrow(@Nonnull final Throwable t) { if (t instanceof Error) { if (t instanceof OutOfMemoryError) { OutOfMemoryErrorDispatcher.onOutOfMemory((OutOfMemoryError) t); } throw (Error) t; } else { throw peeledAndUnchecked(t); } } private  ExceptionUtil(); static boolean isRestartableException(Throwable t); @SuppressWarnings("checkstyle:booleanexpressioncomplexity") static boolean isTopologyException(Throwable t); static void registerJetExceptions(@Nonnull ClientExceptions factory); static void registerJetExceptions(@Nonnull ClientExceptionFactory factory); static Throwable peel(@Nullable Throwable t); @Nonnull static RuntimeException rethrow(@Nonnull final Throwable t); @Nonnull static BiConsumer<T, ? super Throwable> withTryCatch(
            @Nonnull ILogger logger, @Nonnull BiConsumer<T, ? super Throwable> consumer
    ); @Nonnull static BiConsumer<T, ? super Throwable> withTryCatch(
            @Nonnull ILogger logger, @Nonnull String message, @Nonnull BiConsumer<T, ? super Throwable> consumer
    ); @SuppressWarnings("unchecked") @Nonnull static RuntimeException sneakyThrow(@Nonnull Throwable t); @Nonnull static String stackTraceToString(Throwable t); static RuntimeException handleSerializedLambdaCce(HazelcastSerializationException e);  }
@Test public void when_throwableIsExecutionExceptionWithNullCause_then_returnHazelcastException() { ExecutionException exception = new ExecutionException(null); exceptionRule.expect(JetException.class); throw rethrow(exception); }