APIdia Launch Partner
Top Description Fields Constructors Methods
java.nio.file

public Class NotDirectoryException

extends FileSystemException
Class Inheritance

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

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
NotDirectoryException(String
a string identifying the file or null if not known
file
)

Constructs an instance of this class.

Method Summary

Inherited from java.nio.file.FileSystemException:
getFilegetMessagegetOtherFilegetReason

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.nio.file.FileSystemException.serialVersionUID.

Annotations
@Serial

Constructor Detail

NotDirectoryExceptionback to summary
public NotDirectoryException(String file)

Constructs an instance of this class.

Parameters
file:String

a string identifying the file or null if not known