bpp-core  2.1.0
bpp::Exception Class Reference

Exception base class. More...

#include <Bpp/Exceptions.h>

+ Inheritance diagram for bpp::Exception:
+ Collaboration diagram for bpp::Exception:

List of all members.

Public Member Functions

 Exception (const char *text)
 Build a new Exception.
 Exception (const std::string &text)
 Build a new Exception.
virtual ~Exception () throw ()
const char * what () const throw ()
 Method to get the message of the exception (STL method redefinition).

Protected Attributes

std::string message_

Detailed Description

Exception base class.

Overload exception constructor (to control the exceptions mechanism).

Definition at line 56 of file Exceptions.h.


Constructor & Destructor Documentation

bpp::Exception::Exception ( const char *  text) [inline]

Build a new Exception.

Parameters:
textA message to be passed to the exception hierarchy.

Definition at line 68 of file Exceptions.h.

bpp::Exception::Exception ( const std::string &  text) [inline]

Build a new Exception.

Parameters:
textA message to be passed to the exception hierarchy.

Definition at line 75 of file Exceptions.h.

virtual bpp::Exception::~Exception ( ) throw () [inline, virtual]

Definition at line 77 of file Exceptions.h.


Member Function Documentation

const char* bpp::Exception::what ( ) const throw () [inline]

Method to get the message of the exception (STL method redefinition).

Returns:
The message passed to the exception hierarchy.

Definition at line 86 of file Exceptions.h.

References message_.


Member Data Documentation

std::string bpp::Exception::message_ [protected]

Definition at line 60 of file Exceptions.h.

Referenced by what().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends