lsst.pex.policy  20.0.0-1-gb058bd0+46a6078777
Public Member Functions | Static Public Member Functions | List of all members
lsst::pex::policy::ParserError Class Reference

an parent exception for errors that occur during the parsing of policy files. More...

#include <parserexceptions.h>

Inheritance diagram for lsst::pex::policy::ParserError:
lsst::pex::exceptions::RuntimeError lsst::pex::exceptions::Exception std::exception lsst::pex::policy::EOFError lsst::pex::policy::SyntaxError lsst::pex::policy::FormatSyntaxError lsst::pex::policy::UnsupportedSyntax

Public Member Functions

 ParserError (POL_EARGS_TYPED)
 Create an exception the exception with a default message. More...
 
 ParserError (POL_EARGS_TYPED, const std::string &msg)
 Create an exception the exception with a given message. More...
 
 ParserError (POL_EARGS_TYPED, const std::string &msg, int lineno)
 Create an exception the exception with a given message. More...
 
virtual char const * getType () const throw ()
 
virtual lsst::pex::exceptions::Exceptionclone () const
 
void addMessage (char const *file, int line, char const *func, std::string const &message)
 
Traceback const & getTraceback (void) const noexcept
 
virtual std::ostreamaddToStream (std::ostream &stream) const
 
virtual char const * what (void) const noexcept
 
what (T... args)
 

Static Public Member Functions

static std::string makeLocatedMessage (const std::string &msg, int lineno)
 

Detailed Description

an parent exception for errors that occur during the parsing of policy files.

Definition at line 46 of file parserexceptions.h.

Constructor & Destructor Documentation

◆ ParserError() [1/3]

lsst::pex::policy::ParserError::ParserError ( POL_EARGS_TYPED  )
inline

Create an exception the exception with a default message.

Definition at line 51 of file parserexceptions.h.

◆ ParserError() [2/3]

lsst::pex::policy::ParserError::ParserError ( POL_EARGS_TYPED  ,
const std::string msg 
)
inline

Create an exception the exception with a given message.

Parameters
msga message describing the problem.

Definition at line 59 of file parserexceptions.h.

◆ ParserError() [3/3]

lsst::pex::policy::ParserError::ParserError ( POL_EARGS_TYPED  ,
const std::string msg,
int  lineno 
)
inline

Create an exception the exception with a given message.

Parameters
msga message describing the problem.
linenoa line number in the file (or stream) being parsed where the problem occurred. The first line of the file is typically line 1.

Definition at line 69 of file parserexceptions.h.

Member Function Documentation

◆ clone()

virtual lsst::pex::exceptions::Exception* lsst::pex::policy::ParserError::clone ( ) const
virtual

◆ getType()

virtual char const* lsst::pex::policy::ParserError::getType ( ) const
throw (
)
virtual

◆ makeLocatedMessage()

static std::string lsst::pex::policy::ParserError::makeLocatedMessage ( const std::string msg,
int  lineno 
)
inlinestatic

Definition at line 72 of file parserexceptions.h.


The documentation for this class was generated from the following file: