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

CODEX_Quorum::QSESocketBase Class Reference

Base class for exceptions relating to SocketBase and its inheritors. More...

#include <Socket.h>

Inheritance diagram for CODEX_Quorum::QSESocketBase:

Inheritance graph
[legend]
Collaboration diagram for CODEX_Quorum::QSESocketBase:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 QSESocketBase (const string &fname, int line, unsigned long error)
virtual ~QSESocketBase ()
 Virtual destructor.
unsigned long error () const
 Error code from sys/errno.h.
void report () const
 Displays error message for this exception on cerr.
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

void derivedMsg () const
 Derived classes override this method to display their specific error messages.
virtual void errMsg () const =0
 All socket exceptions override this method to provide details relating to their specific errors.

Protected Attributes

unsigned long m_error
 Error code returned by the offending routine.
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 SocketBase and its inheritors.

Definition at line 354 of file Socket.h.


Constructor & Destructor Documentation

CODEX_Quorum::QSESocketBase::QSESocketBase const string &  fname,
int  line,
unsigned long  error
[inline]
 

Parameters:
fname File in which exception occurred
line Line number in file where the exception was thrown
error Value of errno set by routine generating the error

Definition at line 362 of file Socket.h.

References m_error.


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