mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-29 20:03:33 +08:00
[0.1.x] +buildExceptDesc
git-svn-id: https://pykd.svn.codeplex.com/svn@71984 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
8216319e59
commit
22cf80c801
@ -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
|
}; // end namespace pykd
|
||||||
|
|
||||||
|
|
||||||
|
@ -113,6 +113,8 @@ private:
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
std::string buildExceptDesc(PCSTR routineName, HRESULT hres);
|
||||||
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user