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

     1  package translatableerror
     2  
     3  type SecurityGroupNotFoundError struct {
     4  	Name string
     5  }
     6  
     7  func (SecurityGroupNotFoundError) Error() string {
     8  	return "Security group '{{.Name}}' not found."
     9  }
    10  
    11  func (e SecurityGroupNotFoundError) Translate(translate func(string, ...interface{}) string) string {
    12  	return translate(e.Error(), map[string]interface{}{
    13  		"Name": e.Name,
    14  	})
    15  }