hachikuji commented on code in PR #12518:
URL: https://github.com/apache/kafka/pull/12518#discussion_r948294284


##########
clients/src/main/java/org/apache/kafka/common/protocol/Errors.java:
##########
@@ -479,6 +482,19 @@ public static Errors forException(Throwable t) {
         return UNKNOWN_SERVER_ERROR;
     }
 
+    public static Throwable getCause(Throwable t) {

Review Comment:
   I decided not to do this. There may be cases where we have intentionally 
wrapped an exception type because we don't want to expose the underlying error 
to the client.



-- 
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