Example #1
0
//=================================================================================
void Context::GetErrorStringList( std::list< std::string >& errorStringList )
{
	errorStringList.clear();
	for( std::list< Error* >::iterator iter = errorList->begin(); iter != errorList->end(); iter++ )
	{
		Error* error = *iter;
		errorStringList.push_back( error->ErrorMessage() );
	}
}
Example #2
0
//=================================================================================
void Context::DumpAllErrors( FILE* fileStream )
{
	int index = 1;
	for( std::list< Error* >::iterator iter = errorList->begin(); iter != errorList->end(); iter++ )
	{
		Error* error = *iter;
		fprintf( fileStream, "%02d: %s\n", index++, error->ErrorMessage().c_str() );
	}
}