MCPcopy Create free account
hub / github.com/cortexlabs/cortex / ErrorMustBeLessThan

Function ErrorMustBeLessThan

pkg/lib/configreader/errors.go:280–285  ·  view source on GitHub ↗
(provided interface{}, boundary interface{})

Source from the content-addressed store, hash-verified

278}
279
280func ErrorMustBeLessThan(provided interface{}, boundary interface{}) error {
281 return errors.WithStack(&errors.Error{
282 Kind: ErrMustBeLessThan,
283 Message: fmt.Sprintf("must be less than %s (got %s)", s.UserStr(boundary), s.UserStr(provided)),
284 })
285}
286
287func ErrorMustBeGreaterThanOrEqualTo(provided interface{}, boundary interface{}) error {
288 return errors.WithStack(&errors.Error{

Callers 7

QuantityParserFunction · 0.92
ValidateInt64ValFunction · 0.85
ValidateFloat64ValFunction · 0.85
ValidateIntValFunction · 0.85
DurationParserFunction · 0.85
ValidateFloat32ValFunction · 0.85
ValidateInt32ValFunction · 0.85

Calls 2

WithStackFunction · 0.92
UserStrMethod · 0.45

Tested by

no test coverage detected