Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
19
func
NewErrorf(format string, args ...any) error {
20
return
NewError(fmt.Errorf(format, args...))
21
}
22
23
func
(e cancellationError) Error() string {
24
return
"context canceled: "
+ e.inner.Error()
Callers
5
TestDoUntilQuorumWithoutSuccessfulContextCancellation_InstanceContextHandling
Function · 0.92
TestDefaultContextTracker
Function · 0.92
TestZoneAwareContextTracker
Function · 0.92
DoUntilQuorumWithoutSuccessfulContextCancellation
Function · 0.92
TestCancellationError
Function · 0.85
Calls
2
NewError
Function · 0.85
Errorf
Method · 0.80
Tested by
4
TestDoUntilQuorumWithoutSuccessfulContextCancellation_InstanceContextHandling
Function · 0.74
TestDefaultContextTracker
Function · 0.74
TestZoneAwareContextTracker
Function · 0.74
TestCancellationError
Function · 0.68