- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- java.nio.file.FileSystemException
-
- java.nio.file.NotDirectoryException
-
- All Implemented Interfaces:
-
Serializable
public class NotDirectoryException extends FileSystemException
当文件系统操作用于目录时,由于文件不是目录而导致失败的检查异常。- 从以下版本开始:
- 1.7
- 另请参见:
- Serialized Form
-
-
构造方法摘要
构造方法 Constructor 描述 NotDirectoryException(String file)
构造这个类的一个实例。
-
方法摘要
-
Methods inherited from class java.nio.file.FileSystemException
getFile, getMessage, getOtherFile, getReason
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
构造方法详细信息
-
NotDirectoryException
public NotDirectoryException(String file)
构造这个类的一个实例。- 参数
-
file
- a string identifying the file ornull
if not known
-
-