NONE = 0, // -
ALC_INIT, // description
FASTEVENTS_INIT, // description
- OPENAL_INIT, // description
FILE_NOT_FOUND, // path of missing file
+ OPENAL_INIT, // description
RESOURCE_NOT_FOUND, // name of missing resource
SCRIPT_ERROR, // description
SDL_INIT, // description
}
virtual ~Error() throw() {}
- void init(unsigned code, const std::string& what = "")
+ void init(unsigned code = NONE, const std::string& what = "")
{
- mWhat[sizeof(mWhat)-1] = '\0';
strncpy(mWhat, what.c_str(), sizeof(mWhat)-1);
+ mWhat[sizeof(mWhat)-1] = '\0';
mCode = code;
}