github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+incompatible/actor/actionerror/security_group_not_bound_error.go (about) 1 package actionerror 2 3 import ( 4 "fmt" 5 6 "code.cloudfoundry.org/cli/api/cloudcontroller/ccv2/constant" 7 ) 8 9 // SecurityGroupNotBoundError is returned when a requested security group is 10 // not bound in the requested lifecycle phase to the requested space. 11 type SecurityGroupNotBoundError struct { 12 Lifecycle constant.SecurityGroupLifecycle 13 Name string 14 } 15 16 func (e SecurityGroupNotBoundError) Error() string { 17 return fmt.Sprintf("Security group %s not bound to this space for lifecycle phase %s.", e.Name, e.Lifecycle) 18 }