MCPcopy
hub / github.com/moby/moby / InvalidParameter

Function InvalidParameter

errdefs/helpers.go:46–51  ·  view source on GitHub ↗

InvalidParameter creates an [ErrInvalidParameter] error from the given error. It returns the error as-is if it is either nil (no error) or already implements [ErrInvalidParameter],

(err error)

Source from the content-addressed store, hash-verified

44// It returns the error as-is if it is either nil (no error) or already implements
45// [ErrInvalidParameter],
46func InvalidParameter(err error) error {
47 if err == nil || cerrdefs.IsInvalidArgument(err) {
48 return err
49 }
50 return errInvalidParameter{err}
51}
52
53type errConflict struct{ error }
54

Callers 15

ContainerLogsMethod · 0.92
containerStopMethod · 0.92
ContainerRenameMethod · 0.92
reserveNameMethod · 0.92
ContainerStartMethod · 0.92
ContainerAttachMethod · 0.92
tarCopyOptionsMethod · 0.92
GetMethod · 0.92
oci_windows.goFile · 0.92
containerExtractToDirMethod · 0.92
ContainerUpdateMethod · 0.92

Calls

no outgoing calls

Tested by 1

TestInvalidParameterFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…