#include <config_file.h>
Inheritance diagram for NLMISC::EBadSize:
Public Member Functions | |
EBadSize (const std::string &varName, int varSize, int varIndex) | |
virtual const char * | what () const throw () |
Protected Attributes | |
std::string | _Reason |
|
Definition at line 306 of file config_file.h. References nlinfo, and NLMISC::smprintf().
00307 { 00308 static char str[NLMISC::MaxCStringSize]; 00309 smprintf (str, NLMISC::MaxCStringSize, "Trying to access to the index %d but the variable \"%s\" size is %d", varIndex, varName.c_str (), varSize); 00310 _Reason = str; 00311 nlinfo("CF: Exception will be launched: %s", _Reason.c_str()); 00312 } |
|
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(). |