edu.neu.ccs.util
Class FileExistsException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended byedu.neu.ccs.util.FileExistsException
All Implemented Interfaces:
Serializable

public class FileExistsException
extends IOException

Exception thrown to denote the existence of a file that could be inadvertently overwritten if no notification were made of its presence.

Since:
1.0
Version:
2.2
See Also:
FileUtilities, Serialized Form

Field Summary
protected  File f
          The file that caused the exception to be thrown.
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
FileExistsException(File file)
          Constructs an exception generated because of the existence of the given file.
 
Method Summary
 File getFile()
          Returns the file that caused this exception to be thrown.
 
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
 

Field Detail

f

protected File f
The file that caused the exception to be thrown.

Constructor Detail

FileExistsException

public FileExistsException(File file)
Constructs an exception generated because of the existence of the given file.

Parameters:
file - the file that caused the exception to be thrown
Method Detail

getFile

public File getFile()
Returns the file that caused this exception to be thrown.