github.com/wanddynosios/cli/v8@v8.7.9-0.20240221182337-1a92e3a7017f/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  }