|
bpp-core
2.1.0
|
Exception thrown when a value do not match a given constraint. More...
#include <Bpp/Numeric/ParameterExceptions.h>
Inheritance diagram for bpp::ConstraintException:
Collaboration diagram for bpp::ConstraintException:Public Member Functions | |
| ConstraintException (const std::string &text, const Parameter *param, double badValue) | |
| Build a new ConstraintException object. | |
| virtual | ~ConstraintException () throw () |
| virtual double | getBadValue () const |
| Get the value that doesn't match the constraint. | |
| virtual const Parameter * | getParameter () const |
| Get the parameter that threw the exception. | |
| const char * | what () const throw () |
| Method to get the message of the exception (STL method redefinition). | |
Protected Attributes | |
| std::string | message_ |
Private Attributes | |
| double | badValue_ |
Exception thrown when a value do not match a given constraint.
Definition at line 102 of file ParameterExceptions.h.
| ConstraintException::ConstraintException | ( | const std::string & | text, |
| const Parameter * | param, | ||
| double | badValue | ||
| ) |
Build a new ConstraintException object.
| text | A message to be passed to the exception hierarchy. |
| param | A const pointer toward the parameter that threw the exception. |
| badValue | The value that doesn't match the constraint. |
Definition at line 59 of file ParameterExceptions.cpp.
| virtual bpp::ConstraintException::~ConstraintException | ( | ) | throw () [inline, virtual] |
Definition at line 118 of file ParameterExceptions.h.
| double ConstraintException::getBadValue | ( | ) | const [virtual] |
Get the value that doesn't match the constraint.
Definition at line 64 of file ParameterExceptions.cpp.
References badValue_.
Referenced by bpp::AutoParameter::setValue().
| const Parameter * ParameterException::getParameter | ( | ) | const [virtual, inherited] |
Get the parameter that threw the exception.
Definition at line 55 of file ParameterExceptions.cpp.
References bpp::ParameterException::parameter_.
| const char* bpp::Exception::what | ( | ) | const throw () [inline, inherited] |
Method to get the message of the exception (STL method redefinition).
Definition at line 86 of file Exceptions.h.
References bpp::Exception::message_.
double bpp::ConstraintException::badValue_ [private] |
Definition at line 106 of file ParameterExceptions.h.
Referenced by getBadValue().
std::string bpp::Exception::message_ [protected, inherited] |
Definition at line 60 of file Exceptions.h.
Referenced by bpp::Exception::what().