bpp-core
2.2.0
|
Exception thrown when a value do not match a given constraint. More...
#include <Bpp/Numeric/ParameterExceptions.h>
Public Member Functions | |
ConstraintException (const std::string &text, const Parameter *param, double badValue) | |
Build a new ConstraintException object. More... | |
virtual | ~ConstraintException () throw () |
virtual double | getBadValue () const |
Get the value that doesn't match the constraint. More... | |
virtual const Parameter * | getParameter () const |
Get the parameter that threw the exception. More... | |
const char * | what () const throw () |
Method to get the message of the exception (STL method redefinition). More... | |
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.
|
inlinevirtual |
Definition at line 118 of file ParameterExceptions.h.
|
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().
|
virtualinherited |
Get the parameter that threw the exception.
Definition at line 55 of file ParameterExceptions.cpp.
References bpp::ParameterException::parameter_.
|
inlineinherited |
Method to get the message of the exception (STL method redefinition).
Definition at line 87 of file Exceptions.h.
References bpp::Exception::message_.
|
private |
Definition at line 106 of file ParameterExceptions.h.
Referenced by getBadValue().
|
protectedinherited |
Definition at line 61 of file Exceptions.h.
Referenced by bpp::Exception::what().