MCPcopy Index your code
hub / github.com/cockroachdb/errors / Error

Method Error

errbase/format_error_internal_test.go:64–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62var _ SafeFormatter = &wrapElideCauses{}
63
64func (e *wrapElideCauses) Error() string {
65 b := strings.Builder{}
66 b.WriteString(e.override)
67 b.WriteString(": ")
68 for i, ee := range e.causes {
69 b.WriteString(ee.Error())
70 if i < len(e.causes)-1 {
71 b.WriteByte(' ')
72 }
73 }
74 return b.String()
75}
76
77type wrapNoElideCauses struct {
78 prefix string

Callers

nothing calls this directly

Calls 2

ErrorMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected