github.com/Thanhphan1147/cloudfoundry-cli@v7.1.0+incompatible/actor/actionerror/application_not_found_error.go (about)

     1  package actionerror
     2  
     3  import "fmt"
     4  
     5  // ApplicationNotFoundError is returned when a requested application is not
     6  // found.
     7  type ApplicationNotFoundError struct {
     8  	GUID string
     9  	Name string
    10  }
    11  
    12  func (e ApplicationNotFoundError) Error() string {
    13  	if e.GUID != "" {
    14  		return fmt.Sprintf("Application with GUID '%s' not found.", e.GUID)
    15  	}
    16  
    17  	return fmt.Sprintf("Application '%s' not found.", e.Name)
    18  }