CLAW Library (a C++ Library Absolutely Wonderful) 1.5.5
Public Member Functions | Private Attributes

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 claw::pattern::bad_type_identifier

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:
msgA short description of the problem.

Definition at line 50 of file exception.hpp.

      : m_msg(msg)
    { }
claw::exception::~exception ( ) throw () [inline]

Desctructor.

Definition at line 55 of file exception.hpp.

{}

Member Function Documentation

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

Member Data Documentation

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


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