bpp-core3
3.0.0
|
The parameter exception base class. More...
#include <Bpp/Numeric/ParameterExceptions.h>
Public Member Functions | |
ParameterException (const std::string &text, const Parameter *param) | |
Build a new ParameterException object. More... | |
ParameterException (const ParameterException &pe) | |
ParameterException & | operator= (const ParameterException &pe) |
virtual | ~ParameterException () |
virtual const Parameter * | getParameter () const |
Get the parameter that threw the exception. 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 Parameter * | parameter_ |
std::string | message_ |
The parameter exception base class.
Definition at line 61 of file ParameterExceptions.h.
ParameterException::ParameterException | ( | const std::string & | text, |
const Parameter * | param | ||
) |
Build a new ParameterException object.
text | A message to be passed to the exception hierarchy. |
param | A const pointer toward the parameter that threw the exception. |
Definition at line 53 of file ParameterExceptions.cpp.
|
inline |
Definition at line 77 of file ParameterExceptions.h.
|
inlinevirtual |
Definition at line 88 of file ParameterExceptions.h.
|
virtual |
Get the parameter that threw the exception.
Definition at line 57 of file ParameterExceptions.cpp.
References parameter_.
|
noexceptinherited |
Access the message as a std::string.
Definition at line 119 of file Exceptions.cpp.
References bpp::Exception::message_.
|
inline |
Definition at line 81 of file ParameterExceptions.h.
References parameter_.
|
overridenoexceptinherited |
Method to get the message of the exception (STL method redefinition).
Definition at line 118 of file Exceptions.cpp.
References bpp::Exception::message_.
|
privateinherited |
Definition at line 61 of file Exceptions.h.
Referenced by bpp::Exception::Exception(), bpp::Exception::message(), and bpp::Exception::what().
|
private |
Definition at line 65 of file ParameterExceptions.h.
Referenced by getParameter(), and operator=().