bpp-core  2.1.0
bpp::ParameterNotFoundException Class Reference

Exception thrown when a parameter is not found, for instance in a ParameterList. More...

#include <Bpp/Numeric/ParameterExceptions.h>

+ Inheritance diagram for bpp::ParameterNotFoundException:
+ Collaboration diagram for bpp::ParameterNotFoundException:

List of all members.

Public Member Functions

 ParameterNotFoundException (const std::string &text, const std::string &param="")
 Build a new ParameterNotFoundException object.
virtual ~ParameterNotFoundException () throw ()
virtual std::string getParameter () const
 Get the name of the parameter not found.
const char * what () const throw ()
 Method to get the message of the exception (STL method redefinition).

Protected Attributes

std::string message_

Private Attributes

const std::string parameter_

Detailed Description

Exception thrown when a parameter is not found, for instance in a ParameterList.

Definition at line 135 of file ParameterExceptions.h.


Constructor & Destructor Documentation

ParameterNotFoundException::ParameterNotFoundException ( const std::string &  text,
const std::string &  param = "" 
)

Build a new ParameterNotFoundException object.

Parameters:
textA message to be passed to the exception hierarchy.
paramThe name of the parameter not found.

Definition at line 68 of file ParameterExceptions.cpp.

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

Definition at line 150 of file ParameterExceptions.h.


Member Function Documentation

std::string ParameterNotFoundException::getParameter ( ) const [virtual]

Get the name of the parameter not found.

Returns:
The parameter name.

Definition at line 72 of file ParameterExceptions.cpp.

References parameter_.

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

const std::string bpp::ParameterNotFoundException::parameter_ [private]

Definition at line 139 of file ParameterExceptions.h.

Referenced by getParameter().


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