#include <config_file.h>
Inheritance diagram for NLMISC::EBadType:

Public Member Functions | |
| EBadType (const std::string &varName, int varType, int wantedType) | |
| virtual const char * | what () const throw () |
Protected Attributes | |
| std::string | _Reason |
|
||||||||||||||||
|
Definition at line 295 of file config_file.h. References nlinfo, and NLMISC::smprintf().
00296 {
00297 static char str[NLMISC::MaxCStringSize];
00298 smprintf (str, NLMISC::MaxCStringSize, "Bad variable type, variable \"%s\" is a %s and not a %s", varName.c_str (), CConfigFile::CVar::TypeName[varType], CConfigFile::CVar::TypeName[wantedType]);
00299 _Reason = str;
00300 nlinfo("CF: Exception will be launched: %s", _Reason.c_str());
00301 }
|
|
|
Reimplemented in NL3D::EBadBind. Definition at line 672 of file common.cpp.
00673 {
00674 return _Reason.c_str();
00675 }
|
|
|
Definition at line 244 of file common.h. Referenced by NLMISC::Exception::Exception(). |
1.3.6