added the declaration of the exception used by eoParser::getParam

This commit is contained in:
nojhan 2012-03-15 18:16:07 +01:00
commit a1aec6a5be

View file

@ -55,7 +55,6 @@ private:
};
/*!
An error that signals that a maximum number of evaluations has been reached.
@ -80,4 +79,26 @@ private:
};
/*!
* An error that signals a missing parameter
*
* Thrown by eoParser::getParam
*
* @ingroup Parameters
*/
class eoMissingParamException : public std::exception
{
public:
eoMissingParamException(std::string name) : _name(name){}
virtual const char* what() const throw()
{
std::ostringstream ss;
ss << "The command parameter " << _name << " has not been declared";
return ss.str().c_str();
}
private:
std::string _name;
};
#endif // __eoExceptions_h__