github.com/sleungcy-sap/cli@v7.1.0+incompatible/command/translatableerror/incorrect_usage_error.go (about)

     1  package translatableerror
     2  
     3  type IncorrectUsageError struct {
     4  	Message string
     5  }
     6  
     7  func (IncorrectUsageError) DisplayUsage() {}
     8  
     9  func (IncorrectUsageError) Error() string {
    10  	return "Incorrect Usage: {{.Message}}"
    11  }
    12  
    13  func (e IncorrectUsageError) Translate(translate func(string, ...interface{}) string) string {
    14  	return translate(e.Error(), map[string]interface{}{
    15  		"Message": e.Message,
    16  	})
    17  }