MCPcopy
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
51func ErrorToErrorCode(err error) string {
52 e, ok := err.(*Error)
53 if ok {
54 return e.ErrorCode()
55 }
56 return ""
57}
58
59func ErrorToString(err error) string {
60 e, ok := err.(*Error)

Callers

nothing calls this directly

Calls 1

ErrorCodeMethod · 0.65

Tested by

no test coverage detected