Added in API level 26

NotDirectoryException

open class NotDirectoryException : FileSystemException

Checked exception thrown when a file system operation, intended for a directory, fails because the file is not a directory.

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

NotDirectoryException

Added in API level 26
NotDirectoryException(file: String!)

Constructs an instance of this class.

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