41 #ifndef BPP_NUMERIC_PARAMETEREXCEPTIONS_H
42 #define BPP_NUMERIC_PARAMETEREXCEPTIONS_H
47 #include "../Exceptions.h"
83 Exception::operator=(pe);
Exception thrown when a value do not match a given constraint.
ConstraintException(const std::string &text, const Parameter *param, double badValue)
Build a new ConstraintException object.
virtual ~ConstraintException()
virtual double getBadValue() const
Get the value that doesn't match the constraint.
Exception base class. Overload exception constructor (to control the exceptions mechanism)....
The parameter exception base class.
ParameterException(const std::string &text, const Parameter *param)
Build a new ParameterException object.
virtual const Parameter * getParameter() const
Get the parameter that threw the exception.
ParameterException(const ParameterException &pe)
ParameterException & operator=(const ParameterException &pe)
virtual ~ParameterException()
const Parameter * parameter_
Exception thrown when a parameter is not found, for instance in a ParameterList.
const std::string parameter_
virtual ~ParameterNotFoundException()
virtual std::string getParameter() const
Get the name of the parameter not found.
ParameterNotFoundException(const std::string &text, const std::string ¶m="")
Build a new ParameterNotFoundException object.
This class is designed to facilitate the manipulation of parameters.