ijuma commented on code in PR #12229:
URL: https://github.com/apache/kafka/pull/12229#discussion_r900167678


##########
clients/src/main/java/org/apache/kafka/common/protocol/types/CompactArrayOf.java:
##########
@@ -119,7 +119,7 @@ public Object[] validate(Object item) {
                 type.validate(obj);
             return array;
         } catch (ClassCastException e) {
-            throw new SchemaException("Not an Object[].");
+            throw new SchemaException("Not an Object[].", e);

Review Comment:
   I think it would be more helpful to include the class of `item` than 
chaining the exception here.



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