Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound 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 Methods

 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
 
Returns:
Name of file in which the exception occurred


int line () const
 
Returns:
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 36 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 44 of file ExceptionBase.h.

References fname(), line(), m_fname, and m_line.

Referenced by CODEX_Quorum::QSExceptionBase::QSExceptionBase(), and CODEX_SSL::SSLExceptionBase::SSLExceptionBase().


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