ValidationErrorf returns a typed validation error with invalid_argument subtype.
(format string, args ...any)
| 13 | |
| 14 | // ValidationErrorf returns a typed validation error with invalid_argument subtype. |
| 15 | func 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. |
| 20 | func MutuallyExclusiveTyped(rt *RuntimeContext, flags ...string) error { |