[0.1.x] +buildExceptDesc

git-svn-id: https://pykd.svn.codeplex.com/svn@71984 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\EreTIk_cp 2011-12-02 09:57:20 +00:00 committed by Mikhail I. Izmestev
parent 8216319e59
commit 22cf80c801
2 changed files with 12 additions and 0 deletions

View File

@ -28,6 +28,16 @@ void MemoryException::exceptionTranslate( const MemoryException &e )
/////////////////////////////////////////////////////////////////////////////////
std::string buildExceptDesc(PCSTR routineName, HRESULT hres)
{
std::stringstream sstream;
sstream << "Call " << routineName << " failed\n";
sstream << "HRESULT 0x" << std::hex << hres;
return sstream.str();
}
/////////////////////////////////////////////////////////////////////////////////
}; // end namespace pykd

View File

@ -113,6 +113,8 @@ private:
};
};
std::string buildExceptDesc(PCSTR routineName, HRESULT hres);
///////////////////////////////////////////////////////////////////////////////////