org.apache.commons.io
Class DirectoryWalker.CancelException
IOException
org.apache.commons.io.DirectoryWalker.CancelException
- DirectoryWalker
public static class DirectoryWalker.CancelException
extends IOException
CancelException is thrown in DirectoryWalker to cancel the current
processing.
private int | depth - The file depth when the exception was thrown.
|
private File | file - The file being processed when the exception was thrown.
|
private static long | serialVersionUID - Serialization id.
|
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.
|
depth
private int depth
The file depth when the exception was thrown.
file
private File file
The file being processed when the exception was thrown.
serialVersionUID
private static final long serialVersionUID
Serialization id.
CancelException
public CancelException(File file,
int depth)
Constructs a 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
CancelException
public CancelException(String message,
File file,
int depth)
Constructs a 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
getDepth
public int getDepth()
Return the depth when the operation was cancelled.
- the depth when the operation was cancelled
getFile
public File getFile()
Return the file when the operation was cancelled.
- the file when the operation was cancelled
Copyright (c) 2002-2008 Apache Software Foundation