MCPcopy Create free account
hub / github.com/cel-expr/cel-go / binaryFormatError

Function binaryFormatError

ext/formatting.go:667–669  ·  view source on GitHub ↗

helper routines for reporting common errors during string formatting static validation and runtime execution.

(id int64, badType string)

Source from the content-addressed store, hash-verified

665// runtime execution.
666
667func binaryFormatError(id int64, badType string) error {
668 return newFormatError(id, "only integers and bools can be formatted as binary, was given %s", badType)
669}
670
671func decimalFormatError(id int64, badType string) error {
672 return newFormatError(id, "decimal clause can only be used on integers, was given %s", badType)

Callers 2

BinaryMethod · 0.85
BinaryMethod · 0.85

Calls 1

newFormatErrorFunction · 0.85

Tested by

no test coverage detected