Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CODEX_Exceptions::ExceptionBase Class Reference

Base class for all exceptions thrown by classes in CODEX. More...

#include <ExceptionBase.h>

Inheritance diagram for CODEX_Exceptions::ExceptionBase:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 ExceptionBase (const string &fname, int line)
 Create an ExceptionBase.
virtual ~ExceptionBase ()
 Virtual destructor.
virtual void report () const =0
 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 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 all exceptions thrown by classes in CODEX.

Definition at line 39 of file ExceptionBase.h.


Constructor & Destructor Documentation

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

Create an ExceptionBase.

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

Reimplemented in CODEX_APSS::ExceptionBase, CODEX_KeyService::ExceptionBase, and CODEX_Server::ExceptionBase.

Definition at line 47 of file ExceptionBase.h.

References fname(), m_fname, and m_line.


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