MCPcopy
hub / github.com/kubernetes/kubernetes / Errorf

Function Errorf

cmd/kubeadm/app/util/errors/errors.go:115–120  ·  view source on GitHub ↗

Errorf is calls the stdlib errors.Errorf and includes a stack trace.

(format string, args ...any)

Source from the content-addressed store, hash-verified

113
114// Errorf is calls the stdlib errors.Errorf and includes a stack trace.
115func Errorf(format string, args ...any) error {
116 return &errorWithStack{
117 msg: fmt.Errorf(format, args...),
118 stack: callStack(),
119 }
120}
121
122// StackTrace retrieves the stack trace of an error as a string.
123func StackTrace(err error) string {

Callers 15

sourceVersionFunction · 0.92
fromConfigMapMethod · 0.92
ValidateVersionFunction · 0.92
NewFeatureGateFunction · 0.92
RunCompletionFunction · 0.92
newJoinDataFunction · 0.92
mapLegacyKindsToGroupsFunction · 0.92
newCmdConfigValidateFunction · 0.92
newCmdTokenFunction · 0.92
RunDeleteTokensFunction · 0.92
RunVersionFunction · 0.92

Calls 2

callStackFunction · 0.85
ErrorfMethod · 0.65

Tested by 7

sourceVersionFunction · 0.74
customArgsFunction · 0.74
cmdHasFlagsFunction · 0.74
roundtripFunction · 0.74
rollbackFilesFunction · 0.74
errorFetcherFunction · 0.74
TestReactorsFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…