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

Method SafeFormatError

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

SafeFormatError prints the receiver's first error. The provided Printer behaves like a redact.SafePrinter its Print() and Printf() methods conditionally add redaction markers around unsafe bits. The return value of SafeFormatError() decides what happens in the case the method is used to produce a

(p Printer)

Source from the content-addressed store, hash-verified

76 // Note that all the causal chain is reported in verbose reports in
77 // any case.
78 SafeFormatError(p Printer) (next error)
79}
80
81// A Printer formats error messages.

Callers 1

formatRecursiveMethod · 0.65

Implementers 15

withContextcontexttags/with_context.go
barrierErrbarriers/barriers.go
withMarkmarkers/markers.go
werrFmtsafedetails/safedetails_test.go
withSafeDetailssafedetails/with_safedetails.go
withDomaindomains/with_domain.go
unimplementedErrorissuelink/unimplemented_error.go
withIssueLinkissuelink/with_issuelink.go
joinErrorjoin/join.go
withGrpcCodeextgrpc/ext_grpc.go
withSecondaryErrorsecondary/with_secondary.go
wrapElideCauseserrbase/format_error_internal_test.go

Calls

no outgoing calls

Tested by

no test coverage detected