Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   Related Pages  

CODEX_Exceptions::FileException Class Reference

Base class for exceptions relating to files. More...

#include <FileExceptions.h>

Inheritance diagram for CODEX_Exceptions::FileException:

Inheritance graph
[legend]
Collaboration diagram for CODEX_Exceptions::FileException:

Collaboration graph
[legend]
List of all members.

Public Methods

 FileException (const string &fname, int line, const string &file)
 Constructor.

virtual ~FileException ()
 Virtual desctructor.

void report () const
 Derived classes override this method to display their error messages.


Protected Methods

virtual void derivedMsg () const=0
 All file exceptions override this method to provide details relating to their specific errors.


Detailed Description

Base class for exceptions relating to files.

Definition at line 28 of file FileExceptions.h.


Constructor & Destructor Documentation

CODEX_Exceptions::FileException::FileException const string &    fname,
int    line,
const string &    file
[inline]
 

Constructor.

Parameters:
fname  Name of file in which exception occurred
line  Line number in file where the exception was thrown
file  Name of the file for which the operation failed

Definition at line 37 of file FileExceptions.h.

References CODEX_Exceptions::ExceptionBase::fname(), and CODEX_Exceptions::ExceptionBase::line().


The documentation for this class was generated from the following files:
Generated on Wed Jun 2 16:33:10 2004 for COrnell Data EXchange (CODEX) by doxygen1.2.18