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 SummaryConstructorsConstructorDescriptionCancelException(File file, int depth) Constructs aDirectoryWalker.CancelExceptionwith the file and depth when cancellation occurred.CancelException(String message, File file, int depth) Constructs aDirectoryWalker.CancelExceptionwith an appropriate message and the file and depth when cancellation occurred.
- 
Method SummaryMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
CancelExceptionConstructs aDirectoryWalker.CancelExceptionwith the file and depth when cancellation occurred.- Parameters:
- file- the file when the operation was cancelled, may be null
- depth- the depth when the operation was cancelled, may be null
 
- 
CancelExceptionConstructs aDirectoryWalker.CancelExceptionwith an appropriate message and the file and depth when cancellation occurred.- Parameters:
- message- the detail message
- file- the file when the operation was cancelled
- depth- the depth when the operation was cancelled
 
 
- 
- 
Method Details- 
getDepthReturns the depth when the operation was cancelled.- Returns:
- the depth when the operation was cancelled
 
- 
getFileReturns the file when the operation was cancelled.- Returns:
- the file when the operation was cancelled
 
 
-