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:
Serializable
- Enclosing class:
- DirectoryWalker<T>
CancelException is thrown in DirectoryWalker to cancel the current
processing.
- See Also:
-
Constructor Summary
ConstructorDescriptionCancelException
(File file, int depth) Constructs aDirectoryWalker.CancelException
with the file and depth when cancellation occurred.CancelException
(String message, File file, int depth) Constructs aDirectoryWalker.CancelException
with an appropriate message and the file and depth when cancellation occurred. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CancelException
Constructs aDirectoryWalker.CancelException
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
Constructs aDirectoryWalker.CancelException
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
-
-
Method Details
-
getDepth
Returns the depth when the operation was cancelled.- Returns:
- the depth when the operation was cancelled
-
getFile
Returns the file when the operation was cancelled.- Returns:
- the file when the operation was cancelled
-