A simple class to use as exception with string message. More...
#include <exception.hpp>
Public Member Functions | |
exception (const std::string &msg) throw () | |
Constructor. | |
~exception () throw () | |
Desctructor. | |
const char * | what () const throw () |
Get a short description of the problem. | |
Private Attributes | |
const std::string | m_msg |
A simple class to use as exception with string message.
Definition at line 42 of file exception.hpp.
claw::exception::exception | ( | const std::string & | msg | ) | throw () [inline] |
Constructor.
msg | A short description of the problem. |
Definition at line 49 of file exception.hpp.
00050 : m_msg(msg) 00051 { }
claw::exception::~exception | ( | ) | throw () [inline] |
const char* claw::exception::what | ( | ) | const throw () [inline] |
Get a short description of the problem.
Definition at line 57 of file exception.hpp.
References m_msg.
00057 { return m_msg.c_str(); }
const std::string claw::exception::m_msg [private] |
A short description of the problem.
Definition at line 61 of file exception.hpp.
Referenced by what().