Copilot commented on code in PR #3861:
URL: https://github.com/apache/avro/pull/3861#discussion_r3570456146


##########
lang/py/avro/errors.py:
##########
@@ -36,6 +36,10 @@ class InvalidAvroBinaryEncoding(AvroException):
     """For invalid numbers of bytes read."""
 
 
+class AvroCollectionSizeException(AvroException):
+    """Raised when a decoded array or map would exceed the configured item 
limit."""

Review Comment:
   The new exception’s docstring says it’s raised when exceeding the 
“configured item limit”, but the code raises this for both the zero-byte 
element cap and the structural collection cap. Updating the wording avoids 
misleading users about what condition triggered the exception.



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