bpp-core  2.1.0
bpp::NullPointerException Class Reference

The base class exception for NULL pointer error. More...

#include <Bpp/Exceptions.h>

+ Inheritance diagram for bpp::NullPointerException:
+ Collaboration diagram for bpp::NullPointerException:

List of all members.

Public Member Functions

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

Protected Attributes

std::string message_

Detailed Description

The base class exception for NULL pointer error.

This exception may be thrown when an unexpected NULL pointer is found.

Definition at line 122 of file Exceptions.h.


Constructor & Destructor Documentation

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

Build a new NullPointerException.

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

Definition at line 132 of file Exceptions.h.

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

Build a new NullPointerException.

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

Definition at line 139 of file Exceptions.h.

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

Definition at line 141 of file Exceptions.h.


Member Function Documentation

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

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 bpp::Exception::message_.


Member Data Documentation

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

Definition at line 60 of file Exceptions.h.

Referenced by bpp::Exception::what().


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