Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File 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 Member Functions

 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.
const string & fname () const
 Name of file in which the exception occurred.
int line () const
 Line number in file where the exception was thrown.

Protected Member Functions

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

Protected Attributes

string m_fname
 The name of the file in which the exception occurred.
int m_line
 The line number in the file where the exception was thrown.

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.


The documentation for this class was generated from the following files:
Generated on Fri May 6 17:42:09 2005 for COrnell Data EXchange (CODEX) by  doxygen 1.4.1