com.edugility.jpa.maven.plugin
Class FileException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by com.edugility.jpa.maven.plugin.FileException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DirectoryException, NotDirectoryException, NotNormalFileException, NotWritableFileException

public abstract class FileException
extends IOException

An IOException that results from a File failing validation of some kind.

Since:
1.0-SNAPSHOT
Version:
1.0-SNAPSHOT
Author:
Laird Nelson
See Also:
DirectoryException, Serialized Form

Field Summary
private  File file
          The File that failed validation.
 
Constructor Summary
protected FileException(File file)
          Creates a new FileException.
protected FileException(File file, String message)
          Creates a new FileException.
protected FileException(File file, Throwable cause, String message)
          Creates a new FileException.
 
Method Summary
 File getFile()
          Returns the File whose validation failure caused this FileException 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

file

private final File file
The File that failed validation. This field may be null.

Constructor Detail

FileException

protected FileException(File file)
Creates a new FileException.

Parameters:
file - the File whose validation failure caused this FileException to be thrown; may be null

FileException

protected FileException(File file,
                        String message)
Creates a new FileException.

Parameters:
file - the File whose validation failure caused this FileException to be thrown; may be null
message - a detail message further explaining this FileException; may be null

FileException

protected FileException(File file,
                        Throwable cause,
                        String message)
Creates a new FileException.

Parameters:
file - the File whose validation failure caused this FileException to be thrown; may be null
cause - the Throwable that contributed to this FileException's cause; may be null
message - a detail message further explaining this FileException; may be null
Method Detail

getFile

public File getFile()
Returns the File whose validation failure caused this FileException to be thrown.

This method may return null.

Returns:
the File whose validation failure caused this FileException to be thrown, or null


Copyright © 2011-2013 Laird Nelson. All Rights Reserved.