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

Struct errFmt

fmttests/format_error_test.go:542–542  ·  view source on GitHub ↗

errFmt has both Format() and FormatError(), and demonstrates the common case of "rich" errors.

Source from the content-addressed store, hash-verified

540// errFmt has both Format() and FormatError(),
541// and demonstrates the common case of "rich" errors.
542type errFmt struct{ msg string }
543
544func (e *errFmt) Error() string { return e.msg }
545func (e *errFmt) Format(s fmt.State, verb rune) { errbase.FormatError(e, s, verb) }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected