bpp-core  2.2.0
bpp::Exception Class Reference

Exception base class. More...

#include <Bpp/Exceptions.h>

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

Public Member Functions

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

Protected Attributes

std::string message_
 

Detailed Description

Exception base class.

Overload exception constructor (to control the exceptions mechanism).

Definition at line 57 of file Exceptions.h.

Constructor & Destructor Documentation

◆ Exception() [1/2]

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

Build a new Exception.

Parameters
textA message to be passed to the exception hierarchy.

Definition at line 69 of file Exceptions.h.

◆ Exception() [2/2]

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 76 of file Exceptions.h.

◆ ~Exception()

virtual bpp::Exception::~Exception ( )
throw (
)
inlinevirtual

Definition at line 78 of file Exceptions.h.

Member Function Documentation

◆ what()

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 87 of file Exceptions.h.

References message_.

Member Data Documentation

◆ message_

std::string bpp::Exception::message_
protected

Definition at line 61 of file Exceptions.h.

Referenced by what().


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