private static Errors topLevelError(OffsetFetchResponseData data) {
        for (OffsetFetchResponseTopic topic : data.topics()) {
            for (OffsetFetchResponsePartition partition : topic.partitions()) {
                Errors partitionError = Errors.forCode(partition.errorCode());
                if (partitionError != Errors.NONE && !PARTITION_ERRORS.contains(partitionError)) {
                    return partitionError;
                }
            }
        }
        return Errors.NONE;
    }
Constructor with throttle time for version 8 and above.
@param throttleTimeMs The time in milliseconds that this response was throttled
@param errors Potential coordinator or group level error code
@param responseData Fetched offset information grouped by topic-partition and by group
clients/src/main/java/org/apache/kafka/common/requests/OffsetFetchResponse.java