MCPcopy
hub / github.com/larksuite/cli / ValidationErrorf

Function ValidationErrorf

shortcuts/common/validate.go:15–17  ·  view source on GitHub ↗

ValidationErrorf returns a typed validation error with invalid_argument subtype.

(format string, args ...any)

Source from the content-addressed store, hash-verified

13
14// ValidationErrorf returns a typed validation error with invalid_argument subtype.
15func ValidationErrorf(format string, args ...any) *errs.ValidationError {
16 return errs.NewValidationError(errs.SubtypeInvalidArgument, format, args...)
17}
18
19// MutuallyExclusiveTyped checks that at most one of the given flags is set.
20func MutuallyExclusiveTyped(rt *RuntimeContext, flags ...string) error {

Callers 15

validateSearchUserFunction · 0.92
sheetsValidationForFlagFunction · 0.92
requireSheetSelectorFunction · 0.92
optionalSheetSelectorFunction · 0.92
requireAnyStyleFlagFunction · 0.92
validateCondFormatAttrsFunction · 0.92
floatImagePropertiesFunction · 0.92

Calls 1

NewValidationErrorFunction · 0.92