kirktrue commented on code in PR #14406:
URL: https://github.com/apache/kafka/pull/14406#discussion_r1334870782


##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/ErrorEventHandler.java:
##########
@@ -22,13 +22,18 @@
 import java.util.Queue;
 
 public class ErrorEventHandler {
+
     private final Queue<BackgroundEvent> backgroundEventQueue;
 
     public ErrorEventHandler(Queue<BackgroundEvent> backgroundEventQueue) {
         this.backgroundEventQueue = backgroundEventQueue;
     }
 
-    public void handle(Throwable e) {
+    public void handle(RuntimeException e) {
         backgroundEventQueue.add(new ErrorBackgroundEvent(e));
     }
+
+    public void handle(Throwable e) {
+        handle(new RuntimeException(e));

Review Comment:
   OK. I'll change it. Thanks.



-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to