github.com/cloudfoundry/cli@v7.1.0+incompatible/command/translatableerror/organization_not_found_error.go (about)

     1  package translatableerror
     2  
     3  type OrganizationNotFoundError struct {
     4  	GUID string
     5  	Name string
     6  }
     7  
     8  func (OrganizationNotFoundError) Error() string {
     9  	return "Organization '{{.Name}}' not found."
    10  }
    11  
    12  func (e OrganizationNotFoundError) Translate(translate func(string, ...interface{}) string) string {
    13  	return translate(e.Error(), map[string]interface{}{
    14  		"Name": e.Name,
    15  	})
    16  }