MCPcopy Create free account
hub / github.com/ActiveState/code / DDEError

Class DDEError

recipes/Python/577654_DDE_Client/recipe-577654.py:118–124  ·  view source on GitHub ↗

Exception raise when a DDE errpr occures.

Source from the content-addressed store, hash-verified

116 Uninitialize = get_winfunc("user32", "DdeUninitialize", BOOL, (DWORD,))
117
118class DDEError(RuntimeError):
119 """Exception raise when a DDE errpr occures."""
120 def __init__(self, msg, idInst=None):
121 if idInst is None:
122 RuntimeError.__init__(self, msg)
123 else:
124 RuntimeError.__init__(self, "%s (err=%s)" % (msg, hex(DDE.GetLastError(idInst))))
125
126class DDEClient(object):
127 """The DDEClient class.

Callers 4

__init__Method · 0.85
adviseMethod · 0.85
executeMethod · 0.85
requestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected