MCPcopy Create free account
hub / github.com/featureform/featureform / Error

Method Error

metadata/errors.go:21–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19}
20
21func (err *ResourceExistsError) Error() string {
22 id := err.ID
23 name, variant, t := id.Name, id.Variant, id.Type
24 errMsg := fmt.Sprintf("%s Exists.\nName: %s", t, name)
25 if variant != "" {
26 errMsg += "\nVariant: " + variant
27 }
28 return errMsg
29}
30
31func (err *ResourceExistsError) GRPCStatus() *status.Status {
32 return status.New(codes.AlreadyExists, err.Error())

Callers 1

GRPCStatusMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected