MCPcopy
hub / github.com/cloudfoundry/cli / TranslatableError

Interface TranslatableError

command/translatableerror/translatable_error.go:7–11  ·  view source on GitHub ↗

go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 . TranslatableError TranslatableError it wraps the error interface adding a way to set the translation function on the error

Source from the content-addressed store, hash-verified

5// TranslatableError it wraps the error interface adding a way to set the
6// translation function on the error
7type TranslatableError interface {
8 // Returns the untranslated error string
9 Error() string
10 Translate(func(string, ...interface{}) string) string
11}

Implementers 15

TooManyArgumentsErrorcommand/translatableerror/too_many_arg
QuotaNotFoundForNameErrorcommand/translatableerror/organization
AppNameOrManifestRequiredErrorcommand/translatableerror/app_name_or_
DockerPasswordNotSetErrorcommand/translatableerror/docker_passw
RoutePathWithTCPDomainErrorcommand/translatableerror/route_path_w
NoEligiblePackagesErrorcommand/translatableerror/no_eligible_
TriggerLegacyPushErrorcommand/translatableerror/trigger_lega
JSONSyntaxErrorcommand/translatableerror/json_syntax_
UAAEndpointNotFoundErrorcommand/translatableerror/uaa_endpoint
AuthorizationEndpointNotFoundErrorcommand/translatableerror/authorizatio
SpaceQuotaNotFoundForNameErrorcommand/translatableerror/space_quota_
ProcessInstanceNotFoundErrorcommand/translatableerror/process_inst

Calls

no outgoing calls

Tested by

no test coverage detected