code.cloudfoundry.org/cli@v7.1.0+incompatible/actor/actionerror/process_instance_not_running_error.go (about)

     1  package actionerror
     2  
     3  import "fmt"
     4  
     5  // ProcessInstanceNotRunningError is returned when trying to perform an action
     6  // on an instance that is not running
     7  type ProcessInstanceNotRunningError struct {
     8  	ProcessType   string
     9  	InstanceIndex uint
    10  }
    11  
    12  func (e ProcessInstanceNotRunningError) Error() string {
    13  	return fmt.Sprintf("Instance %d of process %s not running", e.InstanceIndex, e.ProcessType)
    14  }