github.com/jenspinney/cli@v6.42.1-0.20190207184520-7450c600020e+incompatible/command/translatableerror/process_instance_not_found_error.go (about) 1 package translatableerror 2 3 // ProcessInstanceNotFoundError is returned when a proccess 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 }