github.com/lukasheimann/cloudfoundrycli@v7.1.0+incompatible/command/translatableerror/organization_with_space_not_found_error.go (about) 1 package translatableerror 2 3 type OrganizationWithSpaceNotFoundError struct { 4 GUID string 5 Name string 6 SpaceName string 7 } 8 9 func (OrganizationWithSpaceNotFoundError) Error() string { 10 return "Organization '{{.Name}}' containing space '{{.SpaceName}}' not found." 11 } 12 13 func (e OrganizationWithSpaceNotFoundError) Translate(translate func(string, ...interface{}) string) string { 14 return translate(e.Error(), map[string]interface{}{ 15 "Name": e.Name, 16 "SpaceName": e.SpaceName, 17 }) 18 }