lsst.pex.policy  19.0.0-2-g3b2f90d+4
Public Member Functions | Static Public Member Functions | List of all members
lsst::pex::policy::EOFError Class Reference

an exception indicated that the stream being parsed ended prematurely. More...

#include <parserexceptions.h>

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

Public Member Functions

 EOFError (POL_EARGS_TYPED)
 Create an exception the exception with a default message. More...
 
 EOFError (POL_EARGS_TYPED, const std::string &msg)
 Create an exception the exception with a given message. More...
 
 EOFError (POL_EARGS_TYPED, int lineno)
 Create an exception the exception with a default message. More...
 
 EOFError (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 exception indicated that the stream being parsed ended prematurely.

Definition at line 85 of file parserexceptions.h.

Constructor & Destructor Documentation

◆ EOFError() [1/4]

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

Create an exception the exception with a default message.

Definition at line 90 of file parserexceptions.h.

◆ EOFError() [2/4]

lsst::pex::policy::EOFError::EOFError ( 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 96 of file parserexceptions.h.

◆ EOFError() [3/4]

lsst::pex::policy::EOFError::EOFError ( POL_EARGS_TYPED  ,
int  lineno 
)
inline

Create an exception the exception with a default message.

Parameters
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 104 of file parserexceptions.h.

◆ EOFError() [4/4]

lsst::pex::policy::EOFError::EOFError ( 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 114 of file parserexceptions.h.

Member Function Documentation

◆ clone()

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

Reimplemented from lsst::pex::policy::ParserError.

◆ getType()

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

Reimplemented from lsst::pex::policy::ParserError.

◆ makeLocatedMessage()

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

Definition at line 72 of file parserexceptions.h.


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