32 #ifndef LSST_PEX_POLICY_PARSER_EXCEPTIONS_H 33 #define LSST_PEX_POLICY_PARSER_EXCEPTIONS_H 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 UnsupportedSyntax(POL_EARGS_TYPED)
Create an exception the exception with a default message.
an exception indicated that the stream being parsed ended prematurely.
ParserError(POL_EARGS_TYPED, const std::string &msg, int lineno)
Create an exception the exception with a given message.
SyntaxError(POL_EARGS_TYPED, const std::string &msg, int lineno)
Create an exception the exception with a given message.
EOFError(POL_EARGS_TYPED, const std::string &msg)
Create an exception the exception with a given message.
EOFError(POL_EARGS_TYPED, const std::string &msg, int lineno)
Create an exception the exception with a given message.
EOFError(POL_EARGS_TYPED, int lineno)
Create an exception the exception with a default message.
UnsupportedSyntax(POL_EARGS_TYPED, const std::string &msg)
Create an exception the exception with a given message.
Provides consistent interface for LSST exceptions.
virtual char const * getType() const
Return the fully-specified C++ type of a pointer to the exception.
#define POL_EARGS_UNTYPED
SyntaxError(POL_EARGS_TYPED, const std::string &msg)
Create an exception the exception with a given message.
SyntaxError(POL_EARGS_TYPED)
Create an exception the exception with a default message.
A base class for image defects.
definition of Policy-specific exceptions classes
an parent exception for errors that occur during the parsing of policy files.
ParserError(POL_EARGS_TYPED)
Create an exception the exception with a default message.
static std::string makeLocatedMessage(const std::string &msg, int lineno)
EOFError(POL_EARGS_TYPED)
Create an exception the exception with a default message.
virtual lsst::pex::exceptions::Exception * clone() const
Return a copy of the exception as an Exception pointer.
ParserError(POL_EARGS_TYPED, const std::string &msg)
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.
an exception thrown because syntax was encountered that is legal for the format being parsed but whic...
Reports errors that are due to events beyond the control of the program.