github.com/jenspinney/cli@v6.42.1-0.20190207184520-7450c600020e+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  }