MCPcopy Create free account
hub / github.com/cockroachdb/errors / Error

Method Error

errutil/redactable.go:68–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66var _ errbase.SafeDetailer = (*withPrefix)(nil)
67
68func (l *withPrefix) Error() string {
69 if l.prefix == "" {
70 return l.cause.Error()
71 }
72 return fmt.Sprintf("%s: %v", l.prefix.StripMarkers(), l.cause)
73}
74
75func (l *withPrefix) Cause() error { return l.cause }
76func (l *withPrefix) Unwrap() error { return l.cause }

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected