MCPcopy Index your code
hub / github.com/cloudfoundry/cli / NewAmbiguousModelError

Function NewAmbiguousModelError

cf/errors/ambiguous_model_error.go:14–19  ·  view source on GitHub ↗
(modelType, name string)

Source from the content-addressed store, hash-verified

12}
13
14func NewAmbiguousModelError(modelType, name string) error {
15 return &AmbiguousModelError{
16 ModelType: modelType,
17 ModelName: name,
18 }
19}
20
21func (err *AmbiguousModelError) Error() string {
22 return T("Multiple ") + strings.ToLower(err.ModelType) + "s named " + err.ModelName + T(" found.")

Callers 2

FindByNameMethod · 0.92
FindByNameMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected