github.com/cloudfoundry-community/cloudfoundry-cli@v6.44.1-0.20240130060226-cda5ed8e89a5+incompatible/actor/actionerror/organization_name_taken_error.go (about) 1 package actionerror 2 3 import "fmt" 4 5 // OrganizationNameTakenError represents the error that occurs when creating 6 // an organization fails because an organization with that name already exists 7 type OrganizationNameTakenError struct { 8 Name string 9 } 10 11 func (e OrganizationNameTakenError) Error() string { 12 return fmt.Sprintf("An organization with name '%s' already exists", e.Name) 13 }