de.schlichtherle.io
Class ArchiveController.FalsePositiveException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.io.FileNotFoundException
de.schlichtherle.io.ArchiveController.FalsePositiveException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- ArchiveController.ArchiveEntryFalsePositiveException, ArchiveController.RfsEntryFalsePositiveException
- Enclosing class:
- ArchiveController
abstract class ArchiveController.FalsePositiveException
- extends FileNotFoundException
Thrown if a controller's target file is a false positive archive file
which actually exists as a plain file or directory in the real file
system or in an enclosing archive file.
Instances of this class are always associated with an
IOException as their cause.
|
Method Summary |
(package private) ArchiveController |
getController()
Returns the archive controller which has thrown this exception. |
(package private) boolean |
isCacheable()
Returns true if and only if there is no cause
associated with this exception or it is safe to cache it. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
cacheable
private final boolean cacheable
ArchiveController.FalsePositiveException
private ArchiveController.FalsePositiveException(IOException cause)
- Creates a new
FalsePositiveException.
- Parameters:
cause - The cause for this exception.
If this is an instance of TransientIOException,
then its transient cause is unwrapped and used as the cause
of this exception instead and
isCacheable() is set to return
false.
getController
ArchiveController getController()
- Returns the archive controller which has thrown this exception.
This is the controller which detected the false positive archive
file.
isCacheable
boolean isCacheable()
- Returns
true if and only if there is no cause
associated with this exception or it is safe to cache it.
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.