github.com/sleungcy/cli@v7.1.0+incompatible/command/translatableerror/v3_api_does_not_exist_error.go (about) 1 package translatableerror 2 3 type V3APIDoesNotExistError struct { 4 Message string 5 } 6 7 func (V3APIDoesNotExistError) Error() string { 8 return "{{.Message}}\nThis command requires CF API version 3.0.0 or higher." 9 } 10 11 func (e V3APIDoesNotExistError) Translate(translate func(string, ...interface{}) string) string { 12 return translate(e.Error(), map[string]interface{}{ 13 "Message": e.Message, 14 }) 15 }