github.com/LukasHeimann/cloudfoundrycli/v8@v8.4.4/command/translatableerror/translatable_error.go (about)

     1  package translatableerror
     2  
     3  //go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 . TranslatableError
     4  
     5  // TranslatableError it wraps the error interface adding a way to set the
     6  // translation function on the error
     7  type TranslatableError interface {
     8  	// Returns the untranslated error string
     9  	Error() string
    10  	Translate(func(string, ...interface{}) string) string
    11  }