Example #1
0
	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() ); 
	}
Example #2
0
 const char* Exception::what() const
 {
   return getFullDescription().c_str();
 }
Example #3
0
const char* Exception::what() const throw()
{
   mFullDesc = getFullDescription();
   return mFullDesc.c_str();
}