Added in API level 26

DirectoryNotEmptyException

open class DirectoryNotEmptyException : FileSystemException

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

Summary

Public constructors

Constructs an instance of this class.

Inherited functions
String! getFile()

Returns the file used to create this exception.

String! getOtherFile()

Returns the other file used to create this exception.

String! getReason()

Returns the string explaining why the file system operation failed.

Inherited properties
String? message

Returns the detail message string.

Public constructors

DirectoryNotEmptyException

Added in API level 26
DirectoryNotEmptyException(dir: String!)

Constructs an instance of this class.

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