32 #ifndef LSST_PEX_POLICY_PARSER_EXCEPTIONS_H 33 #define LSST_PEX_POLICY_PARSER_EXCEPTIONS_H 53 :
lsst::pex::exceptions::RuntimeError(
73 :
lsst::pex::exceptions::RuntimeError(
79 out <<
"Policy Parsing Error:" << lineno <<
": " << msg <<
std::ends;
83 virtual char const *
getType()
const throw();
98 "Unexpected end of Policy data stream")
116 "Unexpected end of Policy data stream", lineno)
129 virtual char const *
getType()
const throw();
162 virtual char const *
getType()
const throw();
196 virtual char const *
getType()
const throw();
230 virtual char const *
getType()
const throw();
240 #endif // LSST_PEX_POLICY_PARSER_EXCEPTIONS_H EOFError(POL_EARGS_TYPED, const std::string &msg)
Create an exception the exception with a given message.
EOFError(POL_EARGS_TYPED)
Create an exception the exception with a default message.
SyntaxError(POL_EARGS_TYPED)
Create an exception the exception with a default message.
ParserError(POL_EARGS_TYPED, const std::string &msg, int lineno)
Create an exception the exception with a given message.
an exception indicated that the stream being parsed ended prematurely.
SyntaxError(POL_EARGS_TYPED, const std::string &msg)
Create an exception the exception with a given message.
ParserError(POL_EARGS_TYPED)
Create an exception the exception with a default message.
EOFError(POL_EARGS_TYPED, int lineno)
Create an exception the exception with a default message.
#define POL_EARGS_UNTYPED
UnsupportedSyntax(POL_EARGS_TYPED, const std::string &msg)
Create an exception the exception with a given message.
an parent exception for errors that occur during the parsing of policy files.
definition of Policy-specific exceptions classes
SyntaxError(POL_EARGS_TYPED, const std::string &msg, int lineno)
Create an exception the exception with a given message.
static std::string makeLocatedMessage(const std::string &msg, int lineno)
virtual char const * getType() const
EOFError(POL_EARGS_TYPED, const std::string &msg, int lineno)
Create an exception the exception with a given message.
UnsupportedSyntax(POL_EARGS_TYPED, const std::string &msg, int lineno)
Create an exception the exception with a given message.
an exception thrown because a general syntax error was encountered.
virtual lsst::pex::exceptions::Exception * clone() const
an exception thrown because syntax was encountered that is legal for the format being parsed but whic...
UnsupportedSyntax(POL_EARGS_TYPED)
Create an exception the exception with a default message.
ParserError(POL_EARGS_TYPED, const std::string &msg)
Create an exception the exception with a given message.