MCPcopy Index your code
hub / github.com/cortexlabs/cortex / ErrorTooManyElements

Function ErrorTooManyElements

pkg/lib/configreader/errors.go:337–342  ·  view source on GitHub ↗
(maxLength int)

Source from the content-addressed store, hash-verified

335}
336
337func ErrorTooManyElements(maxLength int) error {
338 return errors.WithStack(&errors.Error{
339 Kind: ErrTooManyElements,
340 Message: fmt.Sprintf("must contain at most %d elements", maxLength),
341 })
342}
343
344func ErrorWrongNumberOfElements(invalidLengths []int) error {
345 invalidElementsStr := "elements"

Callers 9

validateFloat64ListFunction · 0.85
validateInt32ListFunction · 0.85
validateBoolListFunction · 0.85
validateIntListFunction · 0.85
StructListFunction · 0.85
validateInt64ListFunction · 0.85
validateInterfaceMapListFunction · 0.85
validateStringListFunction · 0.85
validateFloat32ListFunction · 0.85

Calls 1

WithStackFunction · 0.92

Tested by

no test coverage detected