MCPcopy Create free account
hub / github.com/DoNewsCode/core / UnknownErr

Function UnknownErr

unierr/error.go:200–202  ·  view source on GitHub ↗

UnknownErr creates an Error with codes.Unknown.

(e error)

Source from the content-addressed store, hash-verified

198
199// UnknownErr creates an Error with codes.Unknown.
200func UnknownErr(e error) *Error {
201 return err(codes.Unknown, e)
202}
203
204// IsUnknownErr checks if an Error has codes.Unknown
205func IsUnknownErr(e error) bool {

Callers

nothing calls this directly

Calls 1

errFunction · 0.85

Tested by

no test coverage detected