github.com/cloudfoundry-community/cloudfoundry-cli@v6.44.1-0.20240130060226-cda5ed8e89a5+incompatible/actor/actionerror/multiple_spaces_found_error.go (about)

     1  package actionerror
     2  
     3  import "fmt"
     4  
     5  // MultipleSpacesFoundError represents the scenario when the cloud
     6  // controller returns multiple spaces when filtering by name. This is a
     7  // far out edge case and should not happen.
     8  type MultipleSpacesFoundError struct {
     9  	Name    string
    10  	OrgGUID string
    11  }
    12  
    13  func (e MultipleSpacesFoundError) Error() string {
    14  	return fmt.Sprintf("Multiple spaces found matching organization GUID '%s' and name '%s'", e.OrgGUID, e.Name)
    15  }