Module java.base
Package java.nio.file

Class DirectoryIteratorException

    • Constructor Detail

      • DirectoryIteratorException

        public DirectoryIteratorException​(IOException cause)
        Constructs an instance of this class.
        Parameters:
        cause - the IOException that caused the directory iteration to fail
        Throws:
        NullPointerException - if the cause is null
    • Method Detail

      • getCause

        public IOException getCause​()
        Returns the cause of this exception.
        Overrides:
        getCause in class Throwable
        Returns:
        the cause