MCPcopy
hub / github.com/argoproj/argo-workflows / Errorf

Function Errorf

errors/errors.go:45–47  ·  view source on GitHub ↗

Errorf returns an error and formats according to a format specifier

(code string, format string, args ...interface{})

Source from the content-addressed store, hash-verified

43
44// Errorf returns an error and formats according to a format specifier
45func Errorf(code string, format string, args ...interface{}) error {
46 return New(code, fmt.Sprintf(format, args...))
47}
48
49// InternalError is a convenience function to create a Internal error with a message
50func InternalError(message string) error {

Callers 15

TestErrorfFunction · 0.92
SubmitWorkflowMethod · 0.92
ResolveVarFunction · 0.92
simpleReplaceStrictFunction · 0.92
GetMethod · 0.92
GetMethod · 0.92
GetTemplateByNameMethod · 0.92
GetTemplateFromRefMethod · 0.92
GetTemplateMethod · 0.92
resolveArtifactMethod · 0.92

Calls 1

NewFunction · 0.70

Tested by 1

TestErrorfFunction · 0.74