Skip to content

Commit

Permalink
Update lang/java/avro/src/main/java/org/apache/avro/SystemLimitExcept…
Browse files Browse the repository at this point in the history
…ion.java

Co-authored-by: Martin Grigorov <[email protected]>
  • Loading branch information
belugabehr and martin-g authored Oct 8, 2024
1 parent 6a6254d commit c106905
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public static int checkMaxCollectionLength(long items) {
"Cannot read collections larger than " + MAX_ARRAY_VM_LIMIT + " items in Java library");
}
if (items > maxCollectionLength) {
throw new SystemLimitException("Collection length " + items + " exceeds maximum allowed");
throw new SystemLimitException("Collection length " + items + " exceeds the maximum allowed of " + maxCollectionLength);
}
return (int) items;
}
Expand Down

0 comments on commit c106905

Please sign in to comment.