bpp-core3
3.0.0
|
Exception thrown when a parameter is not found, for instance in a ParameterList. More...
#include <Bpp/Numeric/ParameterExceptions.h>
Public Member Functions | |
ParameterNotFoundException (const std::string &text, const std::string ¶m="") | |
Build a new ParameterNotFoundException object. More... | |
virtual | ~ParameterNotFoundException () |
virtual std::string | parameter () const |
Get the name of the parameter not found. More... | |
const char * | what () const noexcept override |
Method to get the message of the exception (STL method redefinition). More... | |
const std::string & | message () const noexcept |
Access the message as a std::string. More... | |
Private Attributes | |
const std::string | parameter_ |
Exception thrown when a parameter is not found, for instance in a ParameterList.
Definition at line 100 of file ParameterExceptions.h.
ParameterNotFoundException::ParameterNotFoundException | ( | const std::string & | text, |
const std::string & | param = "" |
||
) |
Build a new ParameterNotFoundException object.
text | A message to be passed to the exception hierarchy. |
param | The name of the parameter not found. |
Definition at line 33 of file ParameterExceptions.cpp.
|
inlinevirtual |
Definition at line 115 of file ParameterExceptions.h.
References bpp::ParameterException::parameter().
|
noexceptinherited |
Access the message as a std::string.
Definition at line 79 of file Exceptions.cpp.
References bpp::Exception::message_.
|
virtual |
Get the name of the parameter not found.
Definition at line 37 of file ParameterExceptions.cpp.
References parameter_.
|
overridenoexceptinherited |
Method to get the message of the exception (STL method redefinition).
Definition at line 78 of file Exceptions.cpp.
References bpp::Exception::message_.
|
private |
Definition at line 103 of file ParameterExceptions.h.
Referenced by parameter().