MCPcopy
hub / github.com/duke-git/lancet / newXError

Function newXError

xerror/xerror.go:58–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56}
57
58func newXError() *XError {
59 id, err := random.UUIdV4()
60 if err != nil {
61 return nil
62 }
63
64 return &XError{
65 id: id,
66 stack: callers(),
67 values: make(map[string]any),
68 }
69}
70
71func (e *XError) copy(dest *XError) {
72 dest.message = e.message

Callers 3

NewFunction · 0.85
WrapFunction · 0.85
WrapMethod · 0.85

Calls 2

UUIdV4Function · 0.92
callersFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…