github.com/loggregator/cli@v6.33.1-0.20180224010324-82334f081791+incompatible/actor/actionerror/invalid_lifecycle_error.go (about) 1 package actionerror 2 3 import ( 4 "fmt" 5 6 "code.cloudfoundry.org/cli/api/cloudcontroller/ccv2/constant" 7 ) 8 9 // InvalidLifecycleError is returned when the lifecycle specified is neither 10 // running nor staging. 11 type InvalidLifecycleError struct { 12 Lifecycle constant.SecurityGroupLifecycle 13 } 14 15 func (e InvalidLifecycleError) Error() string { 16 return fmt.Sprintf("Invalid lifecycle: %s", e.Lifecycle) 17 }