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