|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.commons.io.DirectoryWalker.CancelException
public static class DirectoryWalker.CancelException
CancelException is thrown in DirectoryWalker to cancel the current processing.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
DirectoryWalker.CancelException(java.io.File file,
int depth)
Constructs a CancelException with
the file and depth when cancellation occurred. |
|
DirectoryWalker.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. |
|
| Method Summary | |
|---|---|
int |
getDepth()
Return the depth when the operation was cancelled. |
java.io.File |
getFile()
Return the file when the operation was cancelled. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private java.io.File file
private int depth
| Constructor Detail |
|---|
public DirectoryWalker.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 null
public DirectoryWalker.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 cancelled| Method Detail |
|---|
public java.io.File getFile()
public int getDepth()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||