MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / GetErrorMessage

Method GetErrorMessage

deps/FtpClient/BlockingSocket.cpp:41–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41bool CBlockingSocketException::GetErrorMessage(LPTSTR lpstrError, UINT nMaxError, PUINT /*pnHelpContext = NULL*/)
42{
43 if( m_nError == 0 )
44 {
45 if( m_strMessage.size()+7>nMaxError )
46 return false;
47 tsprintf(lpstrError, nMaxError, _T("%s error"), m_strMessage.c_str());
48 }
49 else
50 {
51 if( m_strMessage.size()+18>nMaxError )
52 return false;
53 tsprintf(lpstrError, nMaxError, _T("%s error 0x%08x"), m_strMessage.c_str(), m_nError);
54 }
55 return true;
56}
57
58tstring CBlockingSocketException::GetErrorMessage(PUINT /*pnHelpContext = NULL*/)
59{

Callers 8

OpenControlChannelMethod · 0.80
CloseControlChannelMethod · 0.80
SendDataMethod · 0.80
ReceiveDataMethod · 0.80
SendCommandMethod · 0.80
GetSingleResponseLineMethod · 0.80

Calls 2

c_strMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected