Package org.apache.commons.io
Class DirectoryWalker.CancelException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.apache.commons.io.DirectoryWalker.CancelException
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- DirectoryWalker<T>
public static class DirectoryWalker.CancelException extends java.io.IOException
CancelException is thrown in DirectoryWalker to cancel the current processing.- See Also:
- Serialized Form
-
-
Field Summary
Fields 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 Summary
Constructors Constructor Description CancelException(java.io.File file, int depth)
Constructs aCancelException
with the file and depth when cancellation occurred.CancelException(java.lang.String message, java.io.File file, int depth)
Constructs aCancelException
with an appropriate message and the file and depth when cancellation occurred.
-
Method Summary
All Methods Instance Methods Concrete Methods 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.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Serialization id.- See Also:
- Constant Field Values
-
file
private final java.io.File file
The file being processed when the exception was thrown.
-
depth
private final int depth
The file depth when the exception was thrown.
-
-
Constructor Detail
-
CancelException
public CancelException(java.io.File file, int depth)
Constructs aCancelException
with the file and depth when cancellation occurred.- Parameters:
file
- the file when the operation was cancelled, may be nulldepth
- the depth when the operation was cancelled, may be null
-
CancelException
public CancelException(java.lang.String message, java.io.File file, int depth)
Constructs aCancelException
with an appropriate message and the file and depth when cancellation occurred.- Parameters:
message
- the detail messagefile
- the file when the operation was cancelleddepth
- the depth when the operation was cancelled
-
-