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

Function New

errors/errors.go:39–42  ·  view source on GitHub ↗

New returns an error with the supplied message. New also records the stack trace at the point it was called.

(code string, message string)

Source from the content-addressed store, hash-verified

37// New returns an error with the supplied message.
38// New also records the stack trace at the point it was called.
39func New(code string, message string) error {
40 err := errors.New(message)
41 return argoerr{code, message, err}
42}
43
44// Errorf returns an error and formats according to a format specifier
45func Errorf(code string, format string, args ...interface{}) error {

Callers 15

OpenStreamMethod · 0.92
returnArtifactMethod · 0.92
TarGzToWriterFunction · 0.92
ZipToWriterFunction · 0.92
resolveArtifactMethod · 0.92
DecodeLockNameFunction · 0.92
validateMethod · 0.92
LoadMethod · 0.92
IsDirectoryMethod · 0.92

Calls

no outgoing calls