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

Method Unwrap

xerror/xerror.go:123–125  ·  view source on GitHub ↗

Unwrap compatible with github.com/pkg/errors

()

Source from the content-addressed store, hash-verified

121
122// Unwrap compatible with github.com/pkg/errors
123func (e *XError) Unwrap() error {
124 return e.cause
125}
126
127// With adds key and value related to the error object
128func (e *XError) With(key string, value any) *XError {

Callers 3

ValuesMethod · 0.95
ExampleXError_UnwrapFunction · 0.45
TestXError_UnwrapFunction · 0.45

Calls

no outgoing calls

Tested by 2

ExampleXError_UnwrapFunction · 0.36
TestXError_UnwrapFunction · 0.36