#include <Exception.h>
Collaboration diagram for Exception:
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 |
Definition at line 4 of file Exception.h.
Exception::Exception | ( | const std::string & | arg_msg | ) | [explicit] |
Exception::~Exception | ( | ) | throw () [virtual] |
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().
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:
std::string Exception::m_msg [protected] |