edu.neu.ccs.util
Class FileExistsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
edu.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 |
f
protected File f
- The file that caused the exception to be thrown.
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
getFile
public File getFile()
- Returns the file that caused this exception to be thrown.