Exception::Exception( EExceptionCodes code, const string &desc, const string &source, const char *file, long line ) : mDesc( desc ), mSource( source ), mFile( file ) { mCode = code; mLine = line; LogManager::getSingletonPtr()->logMessage( LL_ERROR, getFullDescription() ); }
const char* Exception::what() const { return getFullDescription().c_str(); }
const char* Exception::what() const throw() { mFullDesc = getFullDescription(); return mFullDesc.c_str(); }