MCPcopy Create free account
hub / github.com/mhammond/pywin32 / PyCom_SetAndLogCOMErrorFromPyException

Function PyCom_SetAndLogCOMErrorFromPyException

com/win32com/src/ErrorUtils.cpp:367–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365}
366
367PYCOM_EXPORT HRESULT PyCom_SetAndLogCOMErrorFromPyException(const char *methodName, REFIID riid /* = IID_NULL */)
368{
369 if (!PyErr_Occurred())
370 // No error occurred
371 return S_OK;
372 PyCom_LoggerNonServerException(NULL, "Unexpected exception in gateway method '%s'", methodName);
373 return PyCom_SetCOMErrorFromPyException(riid);
374}
375
376PYCOM_EXPORT HRESULT PyCom_SetAndLogCOMErrorFromPyExceptionEx(PyObject *provider, const char *methodName, REFIID riid /* = IID_NULL */)
377{

Callers 15

HandleMenuMsg2Method · 0.85
ParseDisplayNameMethod · 0.85
EnumObjectsMethod · 0.85
BindToObjectMethod · 0.85
BindToStorageMethod · 0.85
CreateViewObjectMethod · 0.85
GetAttributesOfMethod · 0.85
GetUIObjectOfMethod · 0.85
GetDisplayNameOfMethod · 0.85
SetNameOfMethod · 0.85
GetIconOfMethod · 0.85
GetTitleMethod · 0.85

Tested by

no test coverage detected