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;
108 std::stringstream ss;
109 ss <<
"Parameter \"" << key1 <<
"\" is NOT compatible with parameter \"" << key2 <<
"\"!";
HazelnuppInvalidKeyException()
HazelnuppException(const std::string &msg)
HazelnuppValueNotConvertibleException()
HazelnuppConstraintTypeMissmatch(const std::string &key, const DATA_TYPE requiredType, const DATA_TYPE actualType, const std::string ¶mDescription="")
Gets thrown when a parameter is of a type that does not match the required type, and is not convertib...
Gets thrown something bad happens because of parameter constraints.
const std::string & What() const
Will return an error message.
Gets thrown when an attempt is made to retrieve the wrong data type from a value, when the value not ...
Gets thrown when a parameter constrained to be required is not provided, and has no default value set...
HazelnuppConstraintIncompatibleParameters()
HazelnuppInvalidKeyException(const std::string &msg)
HazelnuppConstraintException()
HazelnuppConstraintTypeMissmatch(const std::string &msg)
HazelnuppConstraintException(const std::string &msg)
HazelnuppConstraintMissingValue(const std::string &key, const std::string ¶mDescription="")
HazelnuppConstraintTypeMissmatch()
static std::string DataTypeToString(DATA_TYPE type)
Generic hazelnupp exception.
HazelnuppConstraintIncompatibleParameters(const std::string &key1, const std::string &key2)
DATA_TYPE
The different data types a paramater can be.
HazelnuppValueNotConvertibleException(const std::string &msg)
Gets thrown when an non-existent key gets dereferenced.
HazelnuppConstraintMissingValue()
Gets thrown when a parameter constrained to be incompatible with other parameters gets supplied along...