added in API level 26

DirectoryNotEmptyException

public class DirectoryNotEmptyException
extends FileSystemException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.io.IOException
         ↳ java.nio.file.FileSystemException
           ↳ java.nio.file.DirectoryNotEmptyException


Checked exception thrown when a file system operation fails because a directory is not empty.

Summary

Public constructors

DirectoryNotEmptyException(String dir)

Constructs an instance of this class.

Inherited methods

Public constructors

DirectoryNotEmptyException

added in API level 26
public DirectoryNotEmptyException (String dir)

Constructs an instance of this class.

Parameters
dir String: a string identifying the directory or null if not known