MCPcopy
hub / github.com/tinylib/msgp / errWrapped

Struct errWrapped

msgp/errors.go:101–104  ·  view source on GitHub ↗

errWrapped allows arbitrary errors passed to WrapError to be enhanced with context and unwrapped with Cause()

Source from the content-addressed store, hash-verified

99// errWrapped allows arbitrary errors passed to WrapError to be enhanced with
100// context and unwrapped with Cause()
101type errWrapped struct {
102 cause error
103 ctx string
104}
105
106func (e errWrapped) Error() string {
107 if e.ctx != "" {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected