MCPcopy Index your code
hub / github.com/go-errors/errors / Errorf

Function Errorf

error.go:145–147  ·  view source on GitHub ↗

Errorf creates a new error with the given message. You can use it as a drop-in replacement for fmt.Errorf() to provide descriptive errors in return values.

(format string, a ...interface{})

Source from the content-addressed store, hash-verified

143// as a drop-in replacement for fmt.Errorf() to provide descriptive
144// errors in return values.
145func Errorf(format string, a ...interface{}) *Error {
146 return Wrap(fmt.Errorf(format, a...), 1)
147}
148
149// Error returns the underlying error's message.
150func (err *Error) Error() string {

Callers 5

ParsePanicFunction · 0.85
parsePanicFrameFunction · 0.85
BenchmarkStackFormatFunction · 0.85
TestStackFormatFunction · 0.85
ExampleErrorfFunction · 0.85

Calls 1

WrapFunction · 0.85

Tested by 3

BenchmarkStackFormatFunction · 0.68
TestStackFormatFunction · 0.68
ExampleErrorfFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…