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

Method Id

xerror/xerror.go:147–150  ·  view source on GitHub ↗

Id sets id to check equality in XError.Is

(id string)

Source from the content-addressed store, hash-verified

145
146// Id sets id to check equality in XError.Is
147func (e *XError) Id(id string) *XError {
148 e.id = id
149 return e
150}
151
152// Values returns map of key and value that is set by With. All wrapped xerror.XError key and values will be merged.
153// Key and values of wrapped error is overwritten by upper xerror.XError.

Callers 5

ExampleXError_IdFunction · 0.80
ExampleXError_IsFunction · 0.80
ExampleXError_InfoFunction · 0.80
TestXError_InfoFunction · 0.80

Calls

no outgoing calls

Tested by 5

ExampleXError_IdFunction · 0.64
ExampleXError_IsFunction · 0.64
ExampleXError_InfoFunction · 0.64
TestXError_InfoFunction · 0.64