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 50 of file exception.hpp.
: m_msg(msg) { }
claw::exception::~exception | ( | ) | throw () [inline] |
const char* claw::exception::what | ( | ) | const throw () [inline] |
Get a short description of the problem.
Definition at line 58 of file exception.hpp.
References m_msg.
{ return m_msg.c_str(); }
const std::string claw::exception::m_msg [private] |
A short description of the problem.
Definition at line 62 of file exception.hpp.
Referenced by what().