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

fpoller::exception Class Reference

#include <poller_util.h>

Inheritance diagram for fpoller::exception::

List of all members.

Public Methods

 exception (const char *where, const char *what)
 exception (const char *where, int errnum)
const char * what () const throw ()
const char * where () const
int which () const

Detailed Description

Exception class intended to bridge semantic gap between POSIX errno system and std::exception.
Examples:

example.cc.

Definition at line 132 of file poller_util.h.


Constructor & Destructor Documentation

fpoller::exception::exception const char * where,
const char * what
[inline]
 

Accepts a const char * indicating context in which thrown (where), and one specifying nature of exceptional circumstance (what).

Definition at line 138 of file poller_util.h.

fpoller::exception::exception const char * where,
int errnum
[inline]
 

Accepts a const char * indicating context in which thrown (where), and an int assumed to be meaningful as a POSIX errno.

Definition at line 141 of file poller_util.h.


Member Function Documentation

const char* fpoller::exception::what const throw () [inline]
 

Returns const char * which indicates the nature of the exceptional condition.

Definition at line 143 of file poller_util.h.

const char* fpoller::exception::where const [inline]
 

Returns const char * which represents the context in which the exception was thrown.

Definition at line 145 of file poller_util.h.

int fpoller::exception::which const [inline]
 

Returns a POSIX errno value, if one was associated with the exception.

Definition at line 147 of file poller_util.h.


The documentation for this class was generated from the following file:
Generated at Wed Oct 16 16:02:39 2002 for fpoller by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001