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