github.com/cloudfoundry/cli@v7.1.0+incompatible/command/translatableerror/job_timeout_error.go (about)

     1  package translatableerror
     2  
     3  import "time"
     4  
     5  type JobTimeoutError struct {
     6  	JobGUID string
     7  	Timeout time.Duration
     8  }
     9  
    10  func (JobTimeoutError) Error() string {
    11  	return "Job ({{.JobGUID}}) polling timeout has been reached. The operation may still be running on the CF instance. Your CF operator may have more information."
    12  }
    13  
    14  func (e JobTimeoutError) Translate(translate func(string, ...interface{}) string) string {
    15  	return translate(e.Error(), map[string]interface{}{
    16  		"JobGUID": e.JobGUID,
    17  	})
    18  }