MCPcopy
hub / github.com/grafana/dskit / NewErrorf

Function NewErrorf

cancellation/error.go:19–21  ·  view source on GitHub ↗
(format string, args ...any)

Source from the content-addressed store, hash-verified

17}
18
19func NewErrorf(format string, args ...any) error {
20 return NewError(fmt.Errorf(format, args...))
21}
22
23func (e cancellationError) Error() string {
24 return "context canceled: " + e.inner.Error()

Calls 2

NewErrorFunction · 0.85
ErrorfMethod · 0.80