github.com/cloudfoundry-community/cloudfoundry-cli@v6.44.1-0.20240130060226-cda5ed8e89a5+incompatible/command/translatableerror/process_instance_not_found_error.go (about) 1 package translatableerror 2 3 // ProcessInstanceNotFoundError is returned when a process type or process instance can't be found 4 type ProcessInstanceNotFoundError struct { 5 ProcessType string 6 InstanceIndex uint 7 } 8 9 func (ProcessInstanceNotFoundError) Error() string { 10 return "Instance {{.InstanceIndex}} of process {{.ProcessType}} not found" 11 } 12 13 func (e ProcessInstanceNotFoundError) Translate(translate func(string, ...interface{}) string) string { 14 return translate(e.Error(), map[string]interface{}{ 15 "ProcessType": e.ProcessType, 16 "InstanceIndex": e.InstanceIndex, 17 }) 18 }