lsst.pex.policy
19.0.0-2-g3b2f90d
|
Go to the documentation of this file.
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
virtual lsst::pex::exceptions::Exception * clone() const
virtual lsst::pex::exceptions::Exception * clone() const
TypeError(char const *ex_file, int ex_line, char const *ex_func, const std::string ¶meter, const std::string &expected)
BadNameError(char const *ex_file, int ex_line, char const *ex_func, const std::string &badname)
virtual lsst::pex::exceptions::Exception * clone() const
DictionaryError(char const *ex_file, int ex_line, char const *ex_func, const std::string &msg)
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...
virtual char const * getType(void) const
an exception thrown when Policy parameter name has an illegal form.
TypeError(char const *ex_file, int ex_line, char const *ex_func)
virtual lsst::pex::exceptions::Exception * clone() const
virtual char const * getType(void) const
DictionaryError(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)
virtual char const * getType(void) const
There is a problem with a dictionary.
virtual char const * getType(void) const
BadNameError(char const *ex_file, int ex_line, char const *ex_func)
#define POL_EARGS_UNTYPED
an exception indicating that a policy parameter of a given name can not be found in a Policy object.