java.io.Serializablepublic static class DirectoryWalker.CancelException
extends java.io.IOException
| Modifier and Type | Field | Description |
|---|---|---|
private int |
depth |
The file depth when the exception was thrown.
|
private java.io.File |
file |
The file being processed when the exception was thrown.
|
private static long |
serialVersionUID |
Serialization id.
|
| Constructor | Description |
|---|---|
CancelException(java.io.File file,
int depth) |
Constructs a
CancelException with
the file and depth when cancellation occurred. |
CancelException(java.lang.String message,
java.io.File file,
int depth) |
Constructs a
CancelException with
an appropriate message and the file and depth when
cancellation occurred. |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getDepth() |
Return the depth when the operation was cancelled.
|
java.io.File |
getFile() |
Return the file when the operation was cancelled.
|
private static final long serialVersionUID
private final java.io.File file
private final int depth
public CancelException(java.io.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(java.lang.String message,
java.io.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 cancelledCopyright (c) 2002-2017 Apache Software Foundation