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

an exception indicating that a policy parameter with a given name has a type different from the one that was requested. More...

#include <exceptions.h>

Inheritance diagram for lsst::pex::policy::TypeError:
lsst::pex::exceptions::DomainError lsst::pex::exceptions::LogicError lsst::pex::exceptions::Exception std::exception

Public Member Functions

 TypeError (char const *ex_file, int ex_line, char const *ex_func)
 
 TypeError (char const *ex_file, int ex_line, char const *ex_func, const std::string &parameter, const std::string &expected)
 
virtual char const * getType (void) 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)
 

Detailed Description

an exception indicating that a policy parameter with a given name has a type different from the one that was requested.

Definition at line 98 of file exceptions.h.

Constructor & Destructor Documentation

◆ TypeError() [1/2]

lsst::pex::policy::TypeError::TypeError ( char const *  ex_file,
int  ex_line,
char const *  ex_func 
)
inline

Definition at line 100 of file exceptions.h.

◆ TypeError() [2/2]

lsst::pex::policy::TypeError::TypeError ( char const *  ex_file,
int  ex_line,
char const *  ex_func,
const std::string parameter,
const std::string expected 
)
inline

Definition at line 102 of file exceptions.h.

Member Function Documentation

◆ clone()

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

◆ getType()

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

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