l4snd::Exception Class Reference

Base class for all log4sendpp exceptions. More...

List of all members.

Public Member Functions

 Exception (unsigned srcline, const char *srcfile, const std::string &message)
 Constructs an exception.
virtual ~Exception () throw ()
 Destroys the exception.
virtual std::string getMessage () const
 Returns the exception description.
unsigned getSrcLine () const
 Returns the source line where the exception occured.
std::string getSrcFile () const
 Returns the source file name where the exception occured.


Detailed Description

Base class for all log4sendpp exceptions.

The main purpose of such exceptions is to provide information about the location and the cause of failed actions.

Definition at line 46 of file exception.h.


Constructor & Destructor Documentation

l4snd::Exception::Exception ( unsigned  srcline,
const char *  srcfile,
const std::string &  message 
)

Constructs an exception.

Parameters:
srcline the line in the sourcefile
srcfile the name of the sourcefile
message a human readable description about the cause

Definition at line 40 of file exception.cpp.

l4snd::Exception::~Exception (  )  throw () [virtual]

Destroys the exception.

Mainly here to enforce virtual destructors.

Definition at line 56 of file exception.cpp.


Member Function Documentation

std::string l4snd::Exception::getMessage (  )  const [virtual]

Returns the exception description.

Returns:
descriptin

Definition at line 72 of file exception.cpp.

unsigned l4snd::Exception::getSrcLine (  )  const

Returns the source line where the exception occured.

Returns:
source line

Definition at line 78 of file exception.cpp.

std::string l4snd::Exception::getSrcFile (  )  const

Returns the source file name where the exception occured.

Returns:
source file name

Definition at line 84 of file exception.cpp.


The documentation for this class was generated from the following files:
Generated on Sat Nov 24 14:41:24 2007 for log4sendpp by  doxygen 1.5.3