MCPcopy Index your code
hub / github.com/tinylib/msgp / Cause

Function Cause

msgp/errors.go:55–61  ·  view source on GitHub ↗

Cause returns the underlying cause of an error that has been wrapped with additional context.

(e error)

Source from the content-addressed store, hash-verified

53// Cause returns the underlying cause of an error that has been wrapped
54// with additional context.
55func Cause(e error) error {
56 out := e
57 if e, ok := e.(errWrapped); ok && e.cause != nil {
58 out = e.cause
59 }
60 return out
61}
62
63// Resumable returns whether or not the error means that the stream of data is
64// malformed and the information is unrecoverable.

Callers 6

TestConvertToEncodeErrorFunction · 0.92
TestCauseFunction · 0.85
TestCauseShortByteFunction · 0.85

Calls

no outgoing calls

Tested by 6

TestConvertToEncodeErrorFunction · 0.74
TestCauseFunction · 0.68
TestCauseShortByteFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…