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

Function FormatError

errbase_api.go:223–223  ·  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

221//
222// Otherwise, its Error() text is printed.
223func FormatError(err error, s fmt.State, verb rune) { errbase.FormatError(err, s, verb) }
224
225// Formattable wraps an error into a fmt.Formatter which
226// will provide "smart" formatting even if the outer layer

Callers 2

FormatMethod · 0.92
FormatMethod · 0.92

Calls 1

FormatErrorFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…