Runtime exception thrown if an I/O error is encountered when iterating over the entries in a directory. The I/O error is retrieved as an IOException using the getCause() method.
IOException
getCause()
extends ConcurrentModificationException
See also: DirectoryStream
Since: 1.7