github.com/sleungcy-sap/cli@v7.1.0+incompatible/command/translatableerror/hostname_with_tcp_domain_error.go (about) 1 package translatableerror 2 3 type HostnameWithTCPDomainError struct{} 4 5 func (HostnameWithTCPDomainError) Error() string { 6 return "The route is invalid: a hostname cannot be used with a TCP domain." 7 } 8 9 func (e HostnameWithTCPDomainError) Translate(translate func(string, ...interface{}) string) string { 10 return translate(e.Error()) 11 }