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

Method FormatError

errbase/formatter.go:47–47  ·  view source on GitHub ↗

FormatError prints the receiver's first error. The return value decides what happens in the case FormatError() is used to produce a "short" message, eg. when it is used to implement Error(): - if it returns nil, then the short message contains no more than that produced for this error, even if the

(p Printer)

Source from the content-addressed store, hash-verified

45 // Note that all the causal chain is reported in verbose reports in
46 // any case.
47 FormatError(p Printer) (next error)
48}
49
50// SafeFormatter is implemented by error leaf or wrapper types that want

Callers 1

formatRecursiveMethod · 0.65

Implementers 15

werrFmtcontexttags/contexttags_test.go
werrFmtbarriers/barriers_test.go
werrFmtmarkers/markers_test.go
werrFmtdomains/domains_test.go
werrFmtissuelink/issuelink_test.go
werrFmtsecondary/secondary_test.go
werrFmterrutil/message_test.go
werrFmtassert/assert_test.go
werrFmthintdetail/hintdetail_test.go
withDetailhintdetail/with_detail.go
withHinthintdetail/with_hint.go
errFmtfmttests/format_error_test.go

Calls

no outgoing calls

Tested by

no test coverage detected