# Updated: Make Your Own Classes Iterables - Discussion

**URL:** <https://forum.xojo.com/t/updated-make-your-own-classes-iterables-discussion/65367>\
**Category:** General\
**Created:** [September 2, 2021, 11:11pm UTC](https://forum.xojo.com/t/updated-make-your-own-classes-iterables-discussion/65367 "2021-09-02T23:11:14Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![anon20074439](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/ac8455/32.png) [@anon20074439](https://forum.xojo.com/u/anon20074439)\
**Post date:** [September 3, 2021, 4:14am UTC](https://forum.xojo.com/t/updated-make-your-own-classes-iterables-discussion/65367/5 "2021-09-03T04:14:04Z")

</div>

> [@Beatrix\_Willius](#):
>
> What does “isn’t accessible” mean?

In the example, it would be a file that doesn’t have correct privileges to access it, or the file has been (re)moved since the directory listing was obtained and the iterator hit the file.

If the internals of the iteration raise an exception, you cannot skip and carry on. If you break the iteration out into a standard for loop, you can indeed use try/catch as you can handle the skip and carry on yourself, thus rendering the use of iteration limited.

See [Folder Contents in a Menu – Xojo Programming Blog](https://blog.xojo.com/2021/02/23/folder-contents-in-a-menu/) where I first encountered the problem, raised it [Latest Blog and Announcement - Folder Contents in a Menu - General - Xojo Programming Forum](https://forum.xojo.com/t/latest-blog-and-announcement-folder-contents-in-a-menu/61424) then the changes needed in [Folder Contents in a Menu, Redux – Xojo Programming Blog](https://blog.xojo.com/2021/02/24/folder-contents-in-a-menu-redux/)

---

_[View the full topic](https://forum.xojo.com/t/updated-make-your-own-classes-iterables-discussion/65367)._
