claw::exception Class Reference

A simple class to use as exception with string message. More...

#include <exception.hpp>

Inheritance diagram for claw::exception:
claw::bad_format

List of all members.

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

Detailed Description

A simple class to use as exception with string message.

Author:
Julien Jorge

Definition at line 42 of file exception.hpp.


Constructor & Destructor Documentation

claw::exception::exception ( const std::string &  msg  )  throw () [inline]

Constructor.

Parameters:
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]

Desctructor.

Definition at line 54 of file exception.hpp.

00054 {}


Member Function Documentation

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(); }


Member Data Documentation

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().


The documentation for this class was generated from the following file:

Generated on 9 Nov 2009 for CLAW Library (a C++ Library Absolutely Wonderful) by  doxygen 1.6.1