32 #ifndef LSST_PEX_POLICY_PARSER_EXCEPTIONS_H
33 #define LSST_PEX_POLICY_PARSER_EXCEPTIONS_H
46 class ParserError :
public lsst::pex::exceptions::RuntimeError {
53 : lsst::pex::exceptions::RuntimeError(
73 : lsst::pex::exceptions::RuntimeError(
78 std::ostringstream out;
79 out <<
"Policy Parsing Error:" << lineno <<
": " << msg << std::ends;
83 virtual char const *
getType()
const throw();
84 virtual lsst::pex::exceptions::Exception *
clone() const;
98 "Unexpected end of Policy data stream")
116 "Unexpected end of Policy data stream", lineno)
129 virtual char const *
getType()
const throw();
130 virtual lsst::pex::exceptions::Exception *
clone() const;
162 virtual char const *
getType()
const throw();
163 virtual lsst::pex::exceptions::Exception *
clone() const;
196 virtual char const *
getType()
const throw();
197 virtual lsst::pex::exceptions::Exception *
clone() const;
230 virtual char const *
getType()
const throw();
231 virtual lsst::pex::exceptions::Exception *
clone() const;
240 #endif // LSST_PEX_POLICY_PARSER_EXCEPTIONS_H
EOFError(POL_EARGS_TYPED, const std::string &msg)
EOFError(POL_EARGS_TYPED)
SyntaxError(POL_EARGS_TYPED)
ParserError(POL_EARGS_TYPED, const std::string &msg, int lineno)
SyntaxError(POL_EARGS_TYPED, const std::string &msg)
ParserError(POL_EARGS_TYPED)
EOFError(POL_EARGS_TYPED, int lineno)
definition of Policy-specific exceptions classes
UnsupportedSyntax(POL_EARGS_TYPED, const std::string &msg)
virtual char const * getType() const
#define POL_EARGS_UNTYPED
virtual lsst::pex::exceptions::Exception * clone() const
SyntaxError(POL_EARGS_TYPED, const std::string &msg, int lineno)
static std::string makeLocatedMessage(const std::string &msg, int lineno)
EOFError(POL_EARGS_TYPED, const std::string &msg, int lineno)
UnsupportedSyntax(POL_EARGS_TYPED, const std::string &msg, int lineno)
UnsupportedSyntax(POL_EARGS_TYPED)
ParserError(POL_EARGS_TYPED, const std::string &msg)