public static class DirectoryWalker.CancelException extends IOException
| 构造器和说明 |
|---|
CancelException(File file,
int depth)
Constructs a
CancelException with
the file and depth when cancellation occurred. |
CancelException(String message,
File file,
int depth)
Constructs a
CancelException with
an appropriate message and the file and depth when
cancellation occurred. |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getDepth()
Return the depth when the operation was cancelled.
|
File |
getFile()
Return the file when the operation was cancelled.
|
public CancelException(File file, int depth)
CancelException with
the file and depth when cancellation occurred.file - the file when the operation was cancelled, may be nulldepth - the depth when the operation was cancelled, may be nullpublic CancelException(String message, File file, int depth)
CancelException with
an appropriate message and the file and depth when
cancellation occurred.message - the detail messagefile - the file when the operation was cancelleddepth - the depth when the operation was cancelledpublic File getFile()
public int getDepth()