APIdia Launch Partner
Top Description Fields Constructors Methods
java.nio.file

public final Class DirectoryIteratorException

extends ConcurrentModificationException
Class Inheritance
Imports
java.util.ConcurrentModificationException, .Objects, java.io.IOException, .ObjectInputStream, .InvalidObjectException

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.
Since
1.7
See Also
DirectoryStream

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
DirectoryIteratorException(IOException
the IOException that caused the directory iteration to fail
cause
)

Constructs an instance of this class.

Method Summary

Modifier and TypeMethod and Description
public IOException

Returns:

the cause
getCause
()

Overrides java.lang.Throwable.getCause.

Returns the cause of this exception.

private void
readObject(ObjectInputStream
the ObjectInputStream to read
s
)

Hides java.lang.Throwable.readObject.

Called to read the object from a stream.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.ConcurrentModificationException.serialVersionUID.

Annotations
@Serial

Constructor Detail

DirectoryIteratorExceptionback to summary
public DirectoryIteratorException(IOException cause)

Constructs an instance of this class.

Parameters
cause:IOException

the IOException that caused the directory iteration to fail

Exceptions
NullPointerException:
if the cause is null

Method Detail

getCauseback to summary
public IOException getCause()

Overrides java.lang.Throwable.getCause.

Returns the cause of this exception.

Returns:IOException

the cause

Annotations
@Override
readObjectback to summary
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException

Hides java.lang.Throwable.readObject.

Called to read the object from a stream.

Parameters
s:ObjectInputStream

the ObjectInputStream to read

Annotations
@Serial
Exceptions
IOException:
if an I/O error occurs
ClassNotFoundException:
if the class of a serialized object could not be found
InvalidObjectException:
if the object is invalid or has a cause that is not an IOException