uk.org.ogsadai.common.files
Class DAIFileContentError

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--uk.org.ogsadai.exception.DAIException
                    |
                    +--uk.org.ogsadai.common.files.DAIFileException
                          |
                          +--uk.org.ogsadai.common.files.DAIFileContentError
All Implemented Interfaces:
DAIExceptionInformation, java.io.Serializable

public class DAIFileContentError
extends DAIFileException

Exception thrown when there is an error in the expected content of a file.

The child exception will typically provide more details regarding the error. This extra layer is often useful add a file name to the error trace.

Associated with error code: uk.org.ogsadai.FILE_CONTENT_ERROR.

Author:
The OGSA-DAI Project Team
See Also:
Serialized Form

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
           
private  java.io.File mFile
           
 
Fields inherited from class uk.org.ogsadai.exception.DAIException
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
DAIFileContentError(java.io.File file, java.lang.Throwable cause)
          Constructor.
 
Method Summary
 java.io.File getFile()
          Gets the file that has the content error.
 
Methods inherited from class uk.org.ogsadai.exception.DAIException
getErrorID, getExceptionID, getLocalizedMessage, getMessage, getParameters, hasChild, setErrorID, setParameters
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
See Also:
Constant Field Values

mFile

private java.io.File mFile
Constructor Detail

DAIFileContentError

public DAIFileContentError(java.io.File file,
                           java.lang.Throwable cause)
Constructor.

Parameters:
file - File with erroneous content.
cause - Child exception giving more details of the error.
Method Detail

getFile

public java.io.File getFile()
Gets the file that has the content error.

Returns:
File containing the error.