github.com/wanddynosios/cli/v8@v8.7.9-0.20240221182337-1a92e3a7017f/api/cloudcontroller/ccerror/v2_job_failed_error.go (about)

     1  package ccerror
     2  
     3  import "fmt"
     4  
     5  // V2JobFailedError represents a failed Cloud Controller Job. It wraps the error
     6  // returned back from the Cloud Controller.
     7  type V2JobFailedError struct {
     8  	JobGUID string
     9  	Message string
    10  }
    11  
    12  func (e V2JobFailedError) Error() string {
    13  	return fmt.Sprintf("Job (%s) failed: %s", e.JobGUID, e.Message)
    14  }