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


##########
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:
   Fixed in 010a389: the docstring now states the exception covers both the 
zero-byte-element cap and the structural cap on the total number of elements, 
matching the two raise sites in `_ensure_collection_available`.



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