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

Method Error

errbase/format_error_internal_test.go:100–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98var _ SafeFormatter = &wrapNoElideCauses{}
99
100func (e *wrapNoElideCauses) Error() string {
101 b := strings.Builder{}
102 b.WriteString(e.prefix)
103 b.WriteString(": ")
104 for i, ee := range e.causes {
105 b.WriteString(ee.Error())
106 if i < len(e.causes)-1 {
107 b.WriteByte(' ')
108 }
109 }
110 return b.String()
111}
112
113// TestFormatErrorInternal attempts to highlight some idiosyncrasies of
114// the error formatting especially when used with multi-cause error

Callers

nothing calls this directly

Calls 2

ErrorMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected