de.schlichtherle.io
Class ContainsFileException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by java.io.FileNotFoundException
                  extended by de.schlichtherle.io.ContainsFileException
All Implemented Interfaces:
Serializable

public class ContainsFileException
extends FileNotFoundException

Thrown if two paths are referring to the same file or contain each other. This exception is typically thrown from File.cp(java.io.InputStream, java.io.OutputStream).

Since:
TrueZIP 6.4
Version:
TrueZIP 6.7
Author:
Christian Schlichtherle
See Also:
Serialized Form

Constructor Summary
ContainsFileException(File ancestor, File descendant)
          Creates a new instance of ContainsFileException.
 
Method Summary
 File getAncestor()
           
 File getDescendant()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContainsFileException

public ContainsFileException(File ancestor,
                             File descendant)
Creates a new instance of ContainsFileException.

Method Detail

getAncestor

public File getAncestor()

getDescendant

public File getDescendant()