 |
Leonetienne/Hazelnupp
Simple, easy to use, command line parameter interface
|
Go to the documentation of this file.
18 const std::string&
What()
const
66 ss <<
"Cannot convert parameter " << key <<
" to type " <<
DataTypeToString(requiredType)
70 if (paramDescription.length() > 0)
71 ss << std::endl << key <<
" => " << paramDescription;
88 ss <<
"Missing required parameter " << key <<
".";
91 if (paramDescription.length() > 0)
92 ss << std::endl << key <<
" => " << paramDescription;
HazelnuppInvalidKeyException(const std::string &msg)
HazelnuppConstraintException()
Gets thrown when an non-existent key gets dereferenced.
HazelnuppConstraintException(const std::string &msg)
HazelnuppException(const std::string &msg)
const std::string & What() const
Will return an error message.
HazelnuppConstraintMissingValue()
HazelnuppConstraintTypeMissmatch()
Gets thrown something bad happens because of parameter constraints.
Generic hazelnupp exception.
Gets thrown when a parameter constrained to be required is not provided, and has no default value set...
Gets thrown when a parameter is of a type that does not match the required type, and is not convertib...
HazelnuppValueNotConvertibleException(const std::string &msg)
DATA_TYPE
The different data types a paramater can be.
HazelnuppConstraintMissingValue(const std::string &key, const std::string ¶mDescription="")
HazelnuppConstraintTypeMissmatch(const std::string &key, const DATA_TYPE requiredType, const DATA_TYPE actualType, const std::string ¶mDescription="")
static std::string DataTypeToString(DATA_TYPE type)
HazelnuppConstraintTypeMissmatch(const std::string &msg)
Gets thrown when an attempt is made to retrieve the wrong data type from a value, when the value not ...
HazelnuppValueNotConvertibleException()
HazelnuppInvalidKeyException()