MCPcopy
hub / github.com/lxn/walk / lastError

Function lastError

error.go:92–98  ·  view source on GitHub ↗
(win32FuncName string)

Source from the content-addressed store, hash-verified

90}
91
92func lastError(win32FuncName string) error {
93 if errno := win.GetLastError(); errno != win.ERROR_SUCCESS {
94 return newError(fmt.Sprintf("%s: Error %d", win32FuncName, errno))
95 }
96
97 return newError(win32FuncName)
98}
99
100func errorFromHRESULT(funcName string, hr win.HRESULT) error {
101 return newError(fmt.Sprintf("%s: Error %d", funcName, hr))

Callers 15

newMenuBarFunction · 0.85
NewMenuFunction · 0.85
removeActionMethod · 0.85
NewGroupBoxFunction · 0.85
WndProcMethod · 0.85
initFunction · 0.85
ClearMethod · 0.85
TextMethod · 0.85
SetTextMethod · 0.85
withOpenClipboardMethod · 0.85
InitWidgetFunction · 0.85
SetParentMethod · 0.85

Calls 1

newErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…