Exception Class Reference

#include <Exception.h>

Collaboration diagram for Exception:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Exception (const std::string &arg_msg)
virtual ~Exception () throw ()
virtual std::string getName () const
virtual std::string getMessage () const
virtual std::string toString (void) const

Protected Attributes

std::string m_msg

Detailed Description

Definition at line 4 of file Exception.h.


Constructor & Destructor Documentation

Exception::Exception ( const std::string &  arg_msg  )  [explicit]

Definition at line 5 of file Exception.cpp.

00005 : m_msg(arg_msg) { }

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

Definition at line 6 of file Exception.cpp.

00006 {}


Member Function Documentation

string Exception::getMessage (  )  const [virtual]

Definition at line 8 of file Exception.cpp.

References m_msg.

Referenced by toString().

00009 {
00010     return m_msg;
00011 }

Here is the caller graph for this function:

string Exception::getName (  )  const [virtual]

Definition at line 13 of file Exception.cpp.

Referenced by toString().

00014 {
00015     return "Generic Exception";
00016 }

Here is the caller graph for this function:

string Exception::toString ( void   )  const [virtual]

Definition at line 18 of file Exception.cpp.

References getMessage(), and getName().

00019 {
00020     if (getMessage().empty())
00021   return getName();
00022     else
00023   return getName() + ": " + getMessage();
00024 }

Here is the call graph for this function:


Member Data Documentation

std::string Exception::m_msg [protected]

Definition at line 16 of file Exception.h.

Referenced by getMessage().


The documentation for this class was generated from the following files:
(c) 2006-2007 John P. Feltz
Generated on Wed Jul 25 16:08:02 2007 for Common Media Input Layer by doxygen 1.4.7

SourceForge.net Logo