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

Function ErrorInvalidInt64

pkg/lib/configreader/errors.go:234–240  ·  view source on GitHub ↗
(provided int64, allowed int64, allowedVals ...int64)

Source from the content-addressed store, hash-verified

232}
233
234func ErrorInvalidInt64(provided int64, allowed int64, allowedVals ...int64) error {
235 allAllowedVals := append([]int64{allowed}, allowedVals...)
236 return errors.WithStack(&errors.Error{
237 Kind: ErrInvalidInt64,
238 Message: fmt.Sprintf("invalid value (got %s, must be %s)", s.UserStr(provided), s.UserStrsOr(allAllowedVals)),
239 })
240}
241
242func ErrorInvalidInt32(provided int32, allowed int32, allowedVals ...int32) error {
243 allAllowedVals := append([]int32{allowed}, allowedVals...)

Callers 1

ValidateInt64ValFunction · 0.85

Calls 2

WithStackFunction · 0.92
UserStrMethod · 0.45

Tested by

no test coverage detected