44 #include "../Text/TextTools.h" 52 Exception(
"ParameterException: " + text + (param != 0 ?
"(" + param -> getName() +
")" : string(
""))),
61 + (param->hasConstraint() ? param->getConstraint()->getDescription() :
"no constraint"), param),
62 badValue_(badValue) {};
69 Exception(
"ParameterNotFoundException: " + text + (!
TextTools::isEmpty(param) ?
"(" + param +
")" : string(
""))),
ConstraintException(const std::string &text, const Parameter *param, double badValue)
Build a new ConstraintException object.
ParameterException(const std::string &text, const Parameter *param)
Build a new ParameterException object.
const Parameter * parameter_
This class allows to perform a correspondence analysis.
ParameterNotFoundException(const std::string &text, const std::string ¶m="")
Build a new ParameterNotFoundException object.
This class is designed to facilitate the manipulation of parameters.
virtual double getBadValue() const
Get the value that doesn't match the constraint.
const std::string parameter_
virtual const Parameter * getParameter() const
Get the parameter that threw the exception.
Some utilitary functions that work on strings.
The parameter exception base class.
virtual std::string getParameter() const
Get the name of the parameter not found.