github.com/franc20/ayesa_sap@v7.0.0-beta.28.0.20200124003224-302d4d52fa6c+incompatible/api/cloudcontroller/ccerror/job_timeout_error.go (about) 1 package ccerror 2 3 import ( 4 "fmt" 5 "time" 6 ) 7 8 // JobTimeoutError is returned from PollJob when the OverallPollingTimeout has 9 // been reached. 10 type JobTimeoutError struct { 11 JobGUID string 12 Timeout time.Duration 13 } 14 15 func (e JobTimeoutError) Error() string { 16 return fmt.Sprintf("Job (%s) polling has reached the maximum timeout of %s seconds", e.JobGUID, e.Timeout) 17 }