32 #ifndef LSST_PEX_POLICY_EXCEPTIONS_H 33 #define LSST_PEX_POLICY_EXCEPTIONS_H 38 #define POL_EARGS_TYPED char const *ex_file, int ex_line, char const *ex_func 39 #define POL_EARGS_UNTYPED ex_file, ex_line, ex_func 40 #define POL_EXCEPT_VIRTFUNCS(etn) \ 41 char const *etn::getType(void) const throw() { return #etn " *"; } \ 42 lsst::pex::exceptions::Exception *etn::clone(void) const { return new etn(*this); } 60 std::string(
"Illegal Policy parameter name: ") + badname) {}
61 virtual char const *getType(
void)
const throw();
74 std::string(
"Malformed dictionary: ") + msg) {}
75 virtual char const *getType(
void)
const throw();
88 :
lsst::pex::exceptions::NotFoundError(
90 virtual char const *getType(
void)
const throw();
104 "\" has wrong type; expecting " +
106 virtual char const *getType(
void)
const throw();
114 #endif // LSST_PEX_POLICY_EXCEPTIONS_H #define POL_EARGS_UNTYPED
TypeError(char const *ex_file, int ex_line, char const *ex_func, const std::string ¶meter, const std::string &expected)
an exception indicating that a policy parameter of a given name can not be found in a Policy object...
DictionaryError(char const *ex_file, int ex_line, char const *ex_func)
an exception thrown when Policy parameter name has an illegal form.
BadNameError(char const *ex_file, int ex_line, char const *ex_func, const std::string &badname)
BadNameError(char const *ex_file, int ex_line, char const *ex_func)
DictionaryError(char const *ex_file, int ex_line, char const *ex_func, const std::string &msg)
There is a problem with a dictionary.
NameNotFound(char const *ex_file, int ex_line, char const *ex_func)
an exception indicating that a policy parameter with a given name has a type different from the one t...
TypeError(char const *ex_file, int ex_line, char const *ex_func)
NameNotFound(char const *ex_file, int ex_line, char const *ex_func, const std::string ¶meter)