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

Function ErrorDisallowedValue

pkg/lib/configreader/errors.go:266–271  ·  view source on GitHub ↗
(provided interface{})

Source from the content-addressed store, hash-verified

264}
265
266func ErrorDisallowedValue(provided interface{}) error {
267 return errors.WithStack(&errors.Error{
268 Kind: ErrDisallowedValue,
269 Message: fmt.Sprintf("%s is not allowed, please use a different value", s.UserStr(provided)),
270 })
271}
272
273func ErrorMustBeLessThanOrEqualTo(provided interface{}, boundary interface{}) error {
274 return errors.WithStack(&errors.Error{

Callers 6

ValidateInt64ValFunction · 0.85
ValidateFloat64ValFunction · 0.85
ValidateIntValFunction · 0.85
ValidateStringValFunction · 0.85
ValidateFloat32ValFunction · 0.85
ValidateInt32ValFunction · 0.85

Calls 2

WithStackFunction · 0.92
UserStrMethod · 0.45

Tested by

no test coverage detected