LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Member Functions | List of all members
lsst::pex::policy::TypeError Class Reference

#include <exceptions.h>

Inheritance diagram for lsst::pex::policy::TypeError:

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::Exception
clone () const
 

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 108 of file exceptions.h.

Constructor & Destructor Documentation

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

Definition at line 110 of file exceptions.h.

111  : lsst::pex::exceptions::DomainError(
112  POL_EARGS_UNTYPED, "Parameter has wrong type")
113  { }
#define POL_EARGS_UNTYPED
Definition: exceptions.h:38
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 114 of file exceptions.h.

116  : lsst::pex::exceptions::DomainError(POL_EARGS_UNTYPED,
117  std::string("Parameter \"") + parameter +
118  "\" has wrong type; expecting " + expected + ".")
119  { }
#define POL_EARGS_UNTYPED
Definition: exceptions.h:38

Member Function Documentation

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

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