github.com/swisscom/cloudfoundry-cli@v7.1.0+incompatible/api/cloudcontroller/ccerror/application_not_found_error.go (about) 1 package ccerror 2 3 import "fmt" 4 5 // ApplicationNotFoundError is returned when an endpoint cannot find the 6 // specified application 7 type ApplicationNotFoundError struct { 8 Name string 9 } 10 11 func (e ApplicationNotFoundError) Error() string { 12 if e.Name != "" { 13 return fmt.Sprintf("App '%s' not found.", e.Name) 14 } 15 16 return "Application not found" 17 }