Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/OpenNHP/opennhp
/ ErrorToErrorCode
Function
ErrorToErrorCode
nhp/common/errors.go:51–57 ·
view source on GitHub ↗
(err error)
Source
from the content-addressed store, hash-verified
49
}
50
51
func
ErrorToErrorCode(err error) string {
52
e, ok := err.(*Error)
53
if
ok {
54
return
e.ErrorCode()
55
}
56
return
""
57
}
58
59
func
ErrorToString(err error) string {
60
e, ok := err.(*Error)
Callers
nothing calls this directly
Calls
1
ErrorCode
Method · 0.65
Tested by
no test coverage detected