- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- java.nio.file.FileSystemException
-
- java.nio.file.DirectoryNotEmptyException
-
- All Implemented Interfaces:
-
Serializable
public class DirectoryNotEmptyException extends FileSystemException
由于目录不为空,文件系统操作失败时抛出的检查异常。- 从以下版本开始:
- 1.7
- 另请参见:
- Serialized Form
-
-
构造方法摘要
构造方法 Constructor 描述 DirectoryNotEmptyException(String dir)
构造这个类的一个实例。
-
方法摘要
-
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
-
-
-
-
构造方法详细信息
-
DirectoryNotEmptyException
public DirectoryNotEmptyException(String dir)
构造这个类的一个实例。- 参数
-
dir
- a string identifying the directory ornull
if not known
-
-