Added in API level 26

NotDirectoryException

open class NotDirectoryException : FileSystemException
kotlin.Any
   ↳ kotlin.Throwable
   ↳ java.lang.Exception
   ↳ java.io.IOException
   ↳ java.nio.file.FileSystemException
   ↳ java.nio.file.NotDirectoryException

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
Inherited properties

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