com.edugility.jpa.maven.plugin
Class DirectoryException

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
                  extended by com.edugility.jpa.maven.plugin.DirectoryException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
NotWritableDirectoryException, PathCreationFailedException

public abstract class DirectoryException
extends FileException

A FileException that results from a File representing a directory failing validation of some kind.

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

Constructor Summary
protected DirectoryException(File directory)
          Creates a new DirectoryException.
protected DirectoryException(File directory, String message)
          Creates a new DirectoryException.
protected DirectoryException(File directory, Throwable cause, String message)
          Creates a new DirectoryException.
 
Method Summary
 File getDirectory()
          A convenience method that returns the return value of the FileException.getFile() method.
 
Methods inherited from class com.edugility.jpa.maven.plugin.FileException
getFile
 
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

DirectoryException

protected DirectoryException(File directory)
Creates a new DirectoryException.

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

DirectoryException

protected DirectoryException(File directory,
                             String message)
Creates a new DirectoryException.

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

DirectoryException

protected DirectoryException(File directory,
                             Throwable cause,
                             String message)
Creates a new DirectoryException.

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

getDirectory

public final File getDirectory()
A convenience method that returns the return value of the FileException.getFile() method.

This method may return null.

Returns:
the result of calling the FileException.getFile() method, or null


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