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

Function FormatError

errbase/format_error.go:50–52  ·  view source on GitHub ↗

FormatError formats an error according to s and verb. This is a helper meant for use when implementing the fmt.Formatter interface on custom error objects. If the error implements errors.Formatter, FormatError calls its FormatError method of f with an errors.Printer configured according to s and ve

(err error, s fmt.State, verb rune)

Source from the content-addressed store, hash-verified

48//
49// Otherwise, its Error() text is printed.
50func FormatError(err error, s fmt.State, verb rune) {
51 formatErrorInternal(err, s, verb, false /* redactableOutput */)
52}
53
54// FormatRedactableError formats an error as a safe object.
55//

Callers 15

FormatErrorFunction · 0.92
FormatMethod · 0.92
FormatMethod · 0.92
FormatMethod · 0.92
FormatMethod · 0.92
FormatMethod · 0.92
FormatMethod · 0.92
FormatMethod · 0.92
FormatMethod · 0.92
FormatMethod · 0.92
FormatMethod · 0.92
FormatMethod · 0.92

Calls 1

formatErrorInternalFunction · 0.85

Tested by 15

FormatMethod · 0.74
FormatMethod · 0.74
FormatMethod · 0.74
FormatMethod · 0.74
FormatMethod · 0.74
FormatMethod · 0.74
FormatMethod · 0.74
FormatMethod · 0.74
FormatMethod · 0.74
FormatMethod · 0.74
FormatMethod · 0.74
FormatMethod · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…