github.com/lukasheimann/cloudfoundrycli@v7.1.0+incompatible/command/translatableerror/no_matching_domain_error.go (about)

     1  package translatableerror
     2  
     3  type NoMatchingDomainError struct {
     4  	Route string
     5  }
     6  
     7  func (e NoMatchingDomainError) Error() string {
     8  	return "The route {{.RouteName}} did not match any existing domains."
     9  }
    10  
    11  func (e NoMatchingDomainError) Translate(translate func(string, ...interface{}) string) string {
    12  	return translate(e.Error(), map[string]interface{}{
    13  		"RouteName": e.Route,
    14  	})
    15  }