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

Function overflowError

docstore/driver/codec.go:730–732  ·  view source on GitHub ↗
(x any, t reflect.Type)

Source from the content-addressed store, hash-verified

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))
732}
733
734func wrap(err error, code gcerr.ErrorCode) error {
735 if _, ok := err.(*gcerr.Error); !ok && err != nil {

Callers 2

decodeFunction · 0.85
unstringifyMapKeyFunction · 0.85

Calls 1

NewFunction · 0.92

Tested by

no test coverage detected