MCPcopy Create free account
hub / github.com/google/go-cloud / decodingError

Function decodingError

docstore/driver/codec.go:726–728  ·  view source on GitHub ↗
(v reflect.Value, d Decoder)

Source from the content-addressed store, hash-verified

724}
725
726func decodingError(v reflect.Value, d Decoder) error {
727 return gcerr.New(gcerr.InvalidArgument, nil, 2, fmt.Sprintf("cannot set type %s to %v", v.Type(), d))
728}
729
730func overflowError(x any, t reflect.Type) error {
731 return gcerr.New(gcerr.InvalidArgument, nil, 2, fmt.Sprintf("value %v overflows type %s", x, t))

Callers 3

decodeFunction · 0.85
decodeListFunction · 0.85
decodeMapFunction · 0.85

Calls 2

NewFunction · 0.92
TypeMethod · 0.45

Tested by

no test coverage detected