github.com/cloudfoundry-attic/cli-with-i18n@v6.32.1-0.20171002233121-7401370d3b85+incompatible/command/translatableerror/process_not_found_error.go (about) 1 package translatableerror 2 3 // ProcessNotFoundError is returned when a proccess type can't be found 4 type ProcessNotFoundError struct { 5 ProcessType string 6 } 7 8 func (ProcessNotFoundError) Error() string { 9 return "Process {{.ProcessType}} not found" 10 } 11 12 func (e ProcessNotFoundError) Translate(translate func(string, ...interface{}) string) string { 13 return translate(e.Error(), map[string]interface{}{ 14 "ProcessType": e.ProcessType, 15 }) 16 }