Module java.base
Package java.nio.file

Class DirectoryNotEmptyException

All Implemented Interfaces:
Serializable

public class DirectoryNotEmptyException
extends FileSystemException
Checked exception thrown when a file system operation fails because a directory is not empty.
Since:
1.7
See Also:
Serialized Form
  • Constructor Details

    • DirectoryNotEmptyException

      public DirectoryNotEmptyException​(String dir)
      Constructs an instance of this class.
      Parameters:
      dir - a string identifying the directory or null if not known