{"modulePath":"github.com/CloudFoundry/cli","version":"v6.53.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package translatableerror\n\nPackage translatableerror contains all the command layer translatable errors.\n\nIn order to prevent future import cycles, this package should \\*\\*not\\*\\* have any non-builtin dependencies!!!\n\n## Constants\n\n```go\nconst (\n\tBadCredentialMessage   = \"Bad credentials\"\n\tInvalidOriginMessage   = \"The origin provided in the login hint is invalid.\"\n\tUnmatchedOriginMessage = \"The origin provided in the login_hint does not match an active Identity Provider, that supports password grant.\"\n)\n```\n\n## Functions\n\n```go\nfunc ConvertToTranslatableError(err error) error\n```\n\n## Types\n\n```go\ntype APINotFoundError struct {\n\tURL string\n}\n```\n\n```go\nfunc (APINotFoundError) Error() string\n```\n\n```go\nfunc (e APINotFoundError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype APIRequestError struct {\n\tErr error\n}\n```\n\n```go\nfunc (APIRequestError) Error() string\n```\n\n```go\nfunc (e APIRequestError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype AccountLockedError struct {\n\tMessage string\n}\n```\n\n```go\nfunc (e AccountLockedError) Error() string\n```\n\n```go\nfunc (e AccountLockedError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype AddPluginRepositoryError struct {\n\tName    string\n\tURL     string\n\tMessage string\n}\n```\n\n```go\nfunc (AddPluginRepositoryError) Error() string\n```\n\n```go\nfunc (e AddPluginRepositoryError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype AppNameOrManifestRequiredError struct {\n\tArgs []string\n}\n```\nAppNameOrManifestRequiredError represent an error caused by using two command line arguments that cannot be used together.\n\n```go\nfunc (AppNameOrManifestRequiredError) DisplayUsage()\n```\n\n```go\nfunc (AppNameOrManifestRequiredError) Error() string\n```\n\n```go\nfunc (e AppNameOrManifestRequiredError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype AppNotFoundInManifestError struct {\n\tName string\n}\n```\n\n```go\nfunc (AppNotFoundInManifestError) Error() string\n```\n\n```go\nfunc (e AppNotFoundInManifestError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype ApplicationNotFoundError struct {\n\tGUID string\n\tName string\n}\n```\n\n```go\nfunc (e ApplicationNotFoundError) Error() string\n```\n\n```go\nfunc (e ApplicationNotFoundError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype ApplicationNotStartedError struct {\n\tName string\n}\n```\n\n```go\nfunc (ApplicationNotStartedError) Error() string\n```\n\n```go\nfunc (e ApplicationNotStartedError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype ApplicationUnableToStartError struct {\n\tAppName    string\n\tBinaryName string\n}\n```\n\n```go\nfunc (ApplicationUnableToStartError) Error() string\n```\n\n```go\nfunc (e ApplicationUnableToStartError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype ArgumentCombinationError struct {\n\tArgs []string\n}\n```\nArgumentCombinationError represent an error caused by using two command line arguments that cannot be used together.\n\n```go\nfunc (ArgumentCombinationError) DisplayUsage()\n```\n\n```go\nfunc (ArgumentCombinationError) Error() string\n```\n\n```go\nfunc (e ArgumentCombinationError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype ArgumentManifestMismatchError struct {\n\tArg              string\n\tManifestProperty string\n\tManifestValue    string\n}\n```\nArgumentManifestMismatchError represent an error caused by using a command line flag that conflicts with a given manifest property.\n\n```go\nfunc (ArgumentManifestMismatchError) DisplayUsage()\n```\n\n```go\nfunc (e ArgumentManifestMismatchError) Error() string\n```\n\n```go\nfunc (e ArgumentManifestMismatchError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype AssignDropletError struct {\n\tMessage string\n}\n```\nAssignDropletError is returned when assigning the current droplet of an app fails\n\n```go\nfunc (AssignDropletError) Error() string\n```\n\n```go\nfunc (e AssignDropletError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype AuthorizationEndpointNotFoundError struct {\n}\n```\n\n```go\nfunc (AuthorizationEndpointNotFoundError) Error() string\n```\n\n```go\nfunc (e AuthorizationEndpointNotFoundError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype BuildpackNotFoundError struct {\n\tBuildpackName string\n\tStackName     string\n}\n```\n\n```go\nfunc (e BuildpackNotFoundError) Error() string\n```\n\n```go\nfunc (e BuildpackNotFoundError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype BuildpackStackChangeError struct {\n\tBuildpackName string\n\tBinaryName    string\n}\n```\n\n```go\nfunc (e BuildpackStackChangeError) Error() string\n```\n\n```go\nfunc (e BuildpackStackChangeError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype CFNetworkingEndpointNotFoundError struct {\n}\n```\n\n```go\nfunc (CFNetworkingEndpointNotFoundError) Error() string\n```\n\n```go\nfunc (e CFNetworkingEndpointNotFoundError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype CommandLineArgsWithMultipleAppsError struct {\n}\n```\n\n```go\nfunc (CommandLineArgsWithMultipleAppsError) Error() string\n```\n\n```go\nfunc (e CommandLineArgsWithMultipleAppsError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype CommandLineOptionsAndManifestConflictError struct {\n\tManifestAttribute  string\n\tCommandLineOptions []string\n}\n```\n\n```go\nfunc (e CommandLineOptionsAndManifestConflictError) Error() string\n```\n\n```go\nfunc (e CommandLineOptionsAndManifestConflictError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype ConflictingBuildpacksError struct {\n}\n```\n\n```go\nfunc (ConflictingBuildpacksError) Error() string\n```\n\n```go\nfunc (e ConflictingBuildpacksError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype DockerPasswordNotSetError struct{}\n```\n\n```go\nfunc (DockerPasswordNotSetError) Error() string\n```\n\n```go\nfunc (e DockerPasswordNotSetError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype DomainNotFoundError struct {\n\tName string\n\tGUID string\n}\n```\n\n```go\nfunc (e DomainNotFoundError) Error() string\n```\n\n```go\nfunc (e DomainNotFoundError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype DownloadPluginHTTPError struct {\n\tMessage string\n}\n```\n\n```go\nfunc (DownloadPluginHTTPError) Error() string\n```\n\n```go\nfunc (e DownloadPluginHTTPError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype EmptyBuildpackDirectoryError struct {\n\tPath string\n}\n```\n\n```go\nfunc (EmptyBuildpackDirectoryError) Error() string\n```\n\n```go\nfunc (e EmptyBuildpackDirectoryError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype EmptyBuildpacksError struct{}\n```\n\n```go\nfunc (EmptyBuildpacksError) Error() string\n```\n\n```go\nfunc (e EmptyBuildpacksError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype EmptyConfigError struct {\n\tFilePath string\n}\n```\n\n```go\nfunc (EmptyConfigError) Error() string\n```\n\n```go\nfunc (e EmptyConfigError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype EmptyDirectoryError struct {\n\tPath string\n}\n```\n\n```go\nfunc (e EmptyDirectoryError) Error() string\n```\n\n```go\nfunc (e EmptyDirectoryError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype FeatureFlagNotFoundError struct {\n\tName string\n}\n```\n\n```go\nfunc (e FeatureFlagNotFoundError) Error() string\n```\n\n```go\nfunc (e FeatureFlagNotFoundError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype FetchingPluginInfoFromRepositoriesError struct {\n\tMessage        string\n\tRepositoryName string\n}\n```\n\n```go\nfunc (FetchingPluginInfoFromRepositoriesError) Error() string\n```\n\n```go\nfunc (e FetchingPluginInfoFromRepositoriesError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype FileChangedError struct {\n\tFilename string\n}\n```\n\n```go\nfunc (e FileChangedError) Error() string\n```\n\n```go\nfunc (e FileChangedError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype FileNotFoundError struct {\n\tPath string\n}\n```\nFileNotFoundError is returned when a local plugin binary is not found during installation.\n\n```go\nfunc (FileNotFoundError) Error() string\n```\n\n```go\nfunc (e FileNotFoundError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype FlagNoLongerSupportedError struct {\n\tFlag string\n}\n```\nFlagNoLongerSupportedError can be used to indicate a flag is no longer supported\n\n```go\nfunc (e FlagNoLongerSupportedError) Error() string\n```\n\n```go\nfunc (e FlagNoLongerSupportedError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype GettingPluginRepositoryError struct {\n\tName    string\n\tMessage string\n}\n```\nGettingPluginRepositoryError is returned when there's an error accessing the plugin repository\n\n```go\nfunc (GettingPluginRepositoryError) Error() string\n```\n\n```go\nfunc (e GettingPluginRepositoryError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype HTTPHealthCheckInvalidError struct {\n}\n```\n\n```go\nfunc (HTTPHealthCheckInvalidError) Error() string\n```\n\n```go\nfunc (e HTTPHealthCheckInvalidError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype HTTPStatusError struct {\n\tStatus string\n}\n```\n\n```go\nfunc (e HTTPStatusError) Error() string\n```\n\n```go\nfunc (e HTTPStatusError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype HealthCheckTypeUnsupportedError struct {\n\tSupportedTypes []string\n}\n```\n\n```go\nfunc (HealthCheckTypeUnsupportedError) Error() string\n```\n\n```go\nfunc (e HealthCheckTypeUnsupportedError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype HostAndPathNotAllowedWithTCPDomainError struct {\n\tDomain string\n}\n```\n\n```go\nfunc (HostAndPathNotAllowedWithTCPDomainError) Error() string\n```\n\n```go\nfunc (e HostAndPathNotAllowedWithTCPDomainError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype HostnameWithTCPDomainError struct{}\n```\n\n```go\nfunc (HostnameWithTCPDomainError) Error() string\n```\n\n```go\nfunc (e HostnameWithTCPDomainError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype IncorrectUsageError struct {\n\tMessage string\n}\n```\n\n```go\nfunc (IncorrectUsageError) DisplayUsage()\n```\n\n```go\nfunc (IncorrectUsageError) Error() string\n```\n\n```go\nfunc (e IncorrectUsageError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype InterpolationError struct {\n\tErr error\n}\n```\n\n```go\nfunc (e InterpolationError) Error() string\n```\n\n```go\nfunc (e InterpolationError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype InvalidBuildpacksError struct{}\n```\n\n```go\nfunc (InvalidBuildpacksError) Error() string\n```\n\n```go\nfunc (e InvalidBuildpacksError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype InvalidChecksumError struct{}\n```\n\n```go\nfunc (InvalidChecksumError) Error() string\n```\n\n```go\nfunc (e InvalidChecksumError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype InvalidRefreshTokenError struct {\n}\n```\n\n```go\nfunc (InvalidRefreshTokenError) Error() string\n```\n\n```go\nfunc (e InvalidRefreshTokenError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype InvalidRouteError struct {\n\tRoute string\n}\n```\n\n```go\nfunc (InvalidRouteError) Error() string\n```\n\n```go\nfunc (e InvalidRouteError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype InvalidSSLCertError struct {\n\tURL              string\n\tSuggestedCommand string\n}\n```\n\n```go\nfunc (InvalidSSLCertError) Error() string\n```\n\n```go\nfunc (e InvalidSSLCertError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype InvalidYAMLError struct {\n\tErr error\n}\n```\n\n```go\nfunc (e InvalidYAMLError) Error() string\n```\n\n```go\nfunc (e InvalidYAMLError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype IsolationSegmentNotFoundError struct {\n\tName string\n}\n```\n\n```go\nfunc (IsolationSegmentNotFoundError) Error() string\n```\n\n```go\nfunc (e IsolationSegmentNotFoundError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype JSONSyntaxError struct {\n\tErr error\n}\n```\n\n```go\nfunc (e JSONSyntaxError) Error() string\n```\n\n```go\nfunc (e JSONSyntaxError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype JobFailedError struct {\n\tJobGUID string\n\tMessage string\n}\n```\n\n```go\nfunc (JobFailedError) Error() string\n```\n\n```go\nfunc (e JobFailedError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype JobTimeoutError struct {\n\tJobGUID string\n\tTimeout time.Duration\n}\n```\n\n```go\nfunc (JobTimeoutError) Error() string\n```\n\n```go\nfunc (e JobTimeoutError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype LifecycleMinimumAPIVersionNotMetError struct {\n\tCurrentVersion string\n\tMinimumVersion string\n}\n```\n\n```go\nfunc (LifecycleMinimumAPIVersionNotMetError) Error() string\n```\n\n```go\nfunc (e LifecycleMinimumAPIVersionNotMetError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype ManifestCreationError struct {\n\tErr error\n}\n```\n\n```go\nfunc (ManifestCreationError) Error() string\n```\n\n```go\nfunc (e ManifestCreationError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype ManifestFileNotFoundInDirectoryError struct {\n\tPathToManifest string\n}\n```\n\n```go\nfunc (ManifestFileNotFoundInDirectoryError) Error() string\n```\n\n```go\nfunc (e ManifestFileNotFoundInDirectoryError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype ManualClientCredentialsError struct{}\n```\n\n```go\nfunc (e ManualClientCredentialsError) Error() string\n```\n\n```go\nfunc (e ManualClientCredentialsError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype MinimumCFAPIVersionNotMetError struct {\n\tCommand        string\n\tCurrentVersion string\n\tMinimumVersion string\n}\n```\n\n```go\nfunc (e MinimumCFAPIVersionNotMetError) Error() string\n```\n\n```go\nfunc (e MinimumCFAPIVersionNotMetError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype MinimumCLIVersionNotMetError struct {\n\tAPIVersion    string\n\tMinCLIVersion string\n\tBinaryVersion string\n}\n```\n\n```go\nfunc (e MinimumCLIVersionNotMetError) Error() string\n```\n\n```go\nfunc (e MinimumCLIVersionNotMetError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype MinimumUAAAPIVersionNotMetError struct {\n\tCommand        string\n\tMinimumVersion string\n}\n```\n\n```go\nfunc (e MinimumUAAAPIVersionNotMetError) Error() string\n```\n\n```go\nfunc (e MinimumUAAAPIVersionNotMetError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype MissingCredentialsError struct {\n\tMissingUsername bool\n\tMissingPassword bool\n}\n```\n\n```go\nfunc (MissingCredentialsError) DisplayUsage()\n```\n\n```go\nfunc (e MissingCredentialsError) Error() string\n```\n\n```go\nfunc (e MissingCredentialsError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype MultiError struct {\n\tMessages []string\n}\n```\n\n```go\nfunc (MultiError) Error() string\n```\n\n```go\nfunc (e MultiError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype MultipleBuildpacksFoundError struct {\n\tBuildpackName string\n}\n```\n\n```go\nfunc (MultipleBuildpacksFoundError) Error() string\n```\n\n```go\nfunc (e MultipleBuildpacksFoundError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype NetworkPolicyDestinationOrgWithoutSpaceError struct{}\n```\n\n```go\nfunc (NetworkPolicyDestinationOrgWithoutSpaceError) DisplayUsage()\n```\n\n```go\nfunc (NetworkPolicyDestinationOrgWithoutSpaceError) Error() string\n```\n\n```go\nfunc (e NetworkPolicyDestinationOrgWithoutSpaceError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype NetworkPolicyProtocolOrPortNotProvidedError struct{}\n```\n\n```go\nfunc (NetworkPolicyProtocolOrPortNotProvidedError) DisplayUsage()\n```\n\n```go\nfunc (NetworkPolicyProtocolOrPortNotProvidedError) Error() string\n```\n\n```go\nfunc (e NetworkPolicyProtocolOrPortNotProvidedError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype NoAPISetError struct {\n\tBinaryName string\n}\n```\n\n```go\nfunc (NoAPISetError) Error() string\n```\n\n```go\nfunc (e NoAPISetError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype NoCompatibleBinaryError struct {\n}\n```\n\n```go\nfunc (e NoCompatibleBinaryError) Error() string\n```\n\n```go\nfunc (e NoCompatibleBinaryError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype NoDomainsFoundError struct {\n}\n```\n\n```go\nfunc (NoDomainsFoundError) Error() string\n```\n\n```go\nfunc (e NoDomainsFoundError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype NoEligiblePackagesError struct {\n\tAppName    string\n\tBinaryName string\n}\n```\n\n```go\nfunc (NoEligiblePackagesError) Error() string\n```\n\n```go\nfunc (e NoEligiblePackagesError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype NoHostnameAndSharedDomainError struct{}\n```\n\n```go\nfunc (NoHostnameAndSharedDomainError) Error() string\n```\n\n```go\nfunc (e NoHostnameAndSharedDomainError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype NoMatchingDomainError struct {\n\tRoute string\n}\n```\n\n```go\nfunc (e NoMatchingDomainError) Error() string\n```\n\n```go\nfunc (e NoMatchingDomainError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype NoOrganizationTargetedError struct {\n\tBinaryName string\n}\n```\n\n```go\nfunc (NoOrganizationTargetedError) Error() string\n```\n\n```go\nfunc (e NoOrganizationTargetedError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype NoPluginRepositoriesError struct{}\n```\n\n```go\nfunc (NoPluginRepositoriesError) Error() string\n```\n\n```go\nfunc (e NoPluginRepositoriesError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype NoSpaceTargetedError struct {\n\tBinaryName string\n}\n```\n\n```go\nfunc (NoSpaceTargetedError) Error() string\n```\n\n```go\nfunc (e NoSpaceTargetedError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype NotLoggedInError struct {\n\tBinaryName string\n}\n```\n\n```go\nfunc (NotLoggedInError) Error() string\n```\n\n```go\nfunc (e NotLoggedInError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype NotSharedDomainError struct {\n\tDomainName string\n}\n```\n\n```go\nfunc (NotSharedDomainError) Error() string\n```\n\n```go\nfunc (e NotSharedDomainError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype OrganizationNotFoundError struct {\n\tGUID string\n\tName string\n}\n```\n\n```go\nfunc (OrganizationNotFoundError) Error() string\n```\n\n```go\nfunc (e OrganizationNotFoundError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype OrganizationWithSpaceNotFoundError struct {\n\tGUID      string\n\tName      string\n\tSpaceName string\n}\n```\n\n```go\nfunc (OrganizationWithSpaceNotFoundError) Error() string\n```\n\n```go\nfunc (e OrganizationWithSpaceNotFoundError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype PackageNotFoundInAppError struct {\n\tAppName    string\n\tBinaryName string\n}\n```\n\n```go\nfunc (PackageNotFoundInAppError) Error() string\n```\n\n```go\nfunc (e PackageNotFoundInAppError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype ParseArgumentError struct {\n\tArgumentName string\n\tExpectedType string\n}\n```\n\n```go\nfunc (ParseArgumentError) DisplayUsage()\n```\n\n```go\nfunc (ParseArgumentError) Error() string\n```\n\n```go\nfunc (e ParseArgumentError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype PasswordGrantTypeLogoutRequiredError struct{}\n```\n\n```go\nfunc (PasswordGrantTypeLogoutRequiredError) Error() string\n```\n\n```go\nfunc (e PasswordGrantTypeLogoutRequiredError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype PasswordVerificationFailedError struct{}\n```\n\n```go\nfunc (PasswordVerificationFailedError) Error() string\n```\n\n```go\nfunc (e PasswordVerificationFailedError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype PluginAlreadyInstalledError struct {\n\tBinaryName string\n\tName       string\n\tVersion    string\n}\n```\nPluginAlreadyInstalledError is returned when the plugin has the same name as an installed plugin.\n\n```go\nfunc (PluginAlreadyInstalledError) Error() string\n```\n\n```go\nfunc (e PluginAlreadyInstalledError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype PluginBinaryRemoveFailedError struct {\n\tErr error\n}\n```\nPluginBinaryRemoveFailedError is returned when the removal of a plugin binary fails.\n\n```go\nfunc (e PluginBinaryRemoveFailedError) Error() string\n```\n\n```go\nfunc (e PluginBinaryRemoveFailedError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype PluginBinaryUninstallError struct {\n\tErr error\n}\n```\nPluginBinaryUninstallError is returned when running the plugin's uninstall hook fails.\n\n```go\nfunc (e PluginBinaryUninstallError) Error() string\n```\n\n```go\nfunc (e PluginBinaryUninstallError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype PluginCommandsConflictError struct {\n\tPluginName     string\n\tPluginVersion  string\n\tCommandNames   []string\n\tCommandAliases []string\n}\n```\nPluginCommandsConflictError is returned when a plugin command name conflicts with a native or existing plugin command name.\n\n```go\nfunc (e PluginCommandsConflictError) Error() string\n```\n\n```go\nfunc (e PluginCommandsConflictError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype PluginInvalidError struct {\n\tErr error\n}\n```\nPluginInvalidError is returned with a plugin is invalid because it is missing a name or has 0 commands.\n\n```go\nfunc (e PluginInvalidError) Error() string\n```\n\n```go\nfunc (e PluginInvalidError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype PluginNotFoundError struct {\n\tPluginName string\n}\n```\n\n```go\nfunc (e PluginNotFoundError) Error() string\n```\n\n```go\nfunc (e PluginNotFoundError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype PluginNotFoundInRepositoryError struct {\n\tBinaryName     string\n\tPluginName     string\n\tRepositoryName string\n}\n```\n\n```go\nfunc (e PluginNotFoundInRepositoryError) Error() string\n```\n\n```go\nfunc (e PluginNotFoundInRepositoryError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype PluginNotFoundOnDiskOrInAnyRepositoryError struct {\n\tPluginName string\n\tBinaryName string\n}\n```\n\n```go\nfunc (e PluginNotFoundOnDiskOrInAnyRepositoryError) Error() string\n```\n\n```go\nfunc (e PluginNotFoundOnDiskOrInAnyRepositoryError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype PortNotAllowedWithHTTPDomainError struct {\n\tDomain string\n}\n```\n\n```go\nfunc (PortNotAllowedWithHTTPDomainError) Error() string\n```\n\n```go\nfunc (e PortNotAllowedWithHTTPDomainError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype ProcessInstanceNotFoundError struct {\n\tProcessType   string\n\tInstanceIndex uint\n}\n```\nProcessInstanceNotFoundError is returned when a process type or process instance can't be found\n\n```go\nfunc (ProcessInstanceNotFoundError) Error() string\n```\n\n```go\nfunc (e ProcessInstanceNotFoundError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype ProcessInstanceNotRunningError struct {\n\tProcessType   string\n\tInstanceIndex uint\n}\n```\nProcessInstanceNotRunningError is returned when trying to perform an action on an instance that is not running\n\n```go\nfunc (ProcessInstanceNotRunningError) Error() string\n```\n\n```go\nfunc (e ProcessInstanceNotRunningError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype ProcessNotFoundError struct {\n\tProcessType string\n}\n```\nProcessNotFoundError is returned when a process type can't be found\n\n```go\nfunc (ProcessNotFoundError) Error() string\n```\n\n```go\nfunc (e ProcessNotFoundError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype PropertyCombinationError struct {\n\tAppName    string\n\tProperties []string\n}\n```\n\n```go\nfunc (e PropertyCombinationError) Error() string\n```\n\n```go\nfunc (e PropertyCombinationError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype QuotaNotFoundForNameError struct {\n\tName string\n}\n```\nQuotaNotFoundForNameError is returned when a quota with the given name can't be found.\n\n```go\nfunc (e QuotaNotFoundForNameError) Error() string\n```\n\n```go\nfunc (e QuotaNotFoundForNameError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype RepositoryNameTakenError struct {\n\tName string\n}\n```\nRepositoryNameTakenError is returned when adding a plugin repository fails due to a repository already existing with the same name\n\n```go\nfunc (RepositoryNameTakenError) Error() string\n```\n\n```go\nfunc (e RepositoryNameTakenError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype RepositoryNotRegisteredError struct {\n\tName string\n}\n```\n\n```go\nfunc (RepositoryNotRegisteredError) Error() string\n```\n\n```go\nfunc (e RepositoryNotRegisteredError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype RequiredArgumentError struct {\n\tArgumentName string\n}\n```\n\n```go\nfunc (RequiredArgumentError) DisplayUsage()\n```\n\n```go\nfunc (RequiredArgumentError) Error() string\n```\n\n```go\nfunc (e RequiredArgumentError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype RequiredFlagsError struct {\n\tArg1 string\n\tArg2 string\n}\n```\nRequiredFlagsError represent an error caused by using a command line argument that requires another flags to be used.\n\n```go\nfunc (RequiredFlagsError) DisplayUsage()\n```\n\n```go\nfunc (RequiredFlagsError) Error() string\n```\n\n```go\nfunc (e RequiredFlagsError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype RouteInDifferentSpaceError struct {\n\tRoute string\n}\n```\n\n```go\nfunc (e RouteInDifferentSpaceError) Error() string\n```\n\n```go\nfunc (e RouteInDifferentSpaceError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype RoutePathWithTCPDomainError struct{}\n```\n\n```go\nfunc (RoutePathWithTCPDomainError) Error() string\n```\n\n```go\nfunc (e RoutePathWithTCPDomainError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype RouterGroupNotFoundError struct {\n\tName string\n}\n```\n\n```go\nfunc (e RouterGroupNotFoundError) Error() string\n```\n\n```go\nfunc (e RouterGroupNotFoundError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype RunTaskError struct {\n\tMessage string\n}\n```\n\n```go\nfunc (RunTaskError) Error() string\n```\n\n```go\nfunc (e RunTaskError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype SSHUnableToAuthenticateError struct{}\n```\n\n```go\nfunc (SSHUnableToAuthenticateError) Error() string\n```\n\n```go\nfunc (e SSHUnableToAuthenticateError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype SSLCertError struct {\n\tMessage string\n}\n```\n\n```go\nfunc (SSLCertError) Error() string\n```\n\n```go\nfunc (e SSLCertError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype SecurityGroupNotFoundError struct {\n\tName string\n}\n```\n\n```go\nfunc (SecurityGroupNotFoundError) Error() string\n```\n\n```go\nfunc (e SecurityGroupNotFoundError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype ServiceInstanceNotFoundError struct {\n\tGUID string\n\tName string\n}\n```\n\n```go\nfunc (e ServiceInstanceNotFoundError) Error() string\n```\n\n```go\nfunc (e ServiceInstanceNotFoundError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype ServiceInstanceNotShareableError struct {\n\tFeatureFlagEnabled          bool\n\tServiceBrokerSharingEnabled bool\n}\n```\nServiceInstanceNotShareableError is returned when either the service\\_instance\\_sharing feature flag is disabled or the service broker has disabled sharing\n\n```go\nfunc (e ServiceInstanceNotShareableError) Error() string\n```\n\n```go\nfunc (e ServiceInstanceNotShareableError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype ServiceInstanceNotSharedToSpaceError struct {\n\tServiceInstanceName string\n}\n```\nServiceInstanceNotSharedToSpaceError is returned when attempting to unshare a service instance from a space to which it is not shared.\n\n```go\nfunc (e ServiceInstanceNotSharedToSpaceError) Error() string\n```\n\n```go\nfunc (e ServiceInstanceNotSharedToSpaceError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype ServicePlanNotFoundError struct {\n\tPlanName     string\n\tOfferingName string\n}\n```\n\n```go\nfunc (e ServicePlanNotFoundError) Error() string\n```\n\n```go\nfunc (e ServicePlanNotFoundError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype SharedServiceInstanceNotFoundError struct {\n}\n```\n\n```go\nfunc (SharedServiceInstanceNotFoundError) Error() string\n```\n\n```go\nfunc (e SharedServiceInstanceNotFoundError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype SpaceNotFoundError struct {\n\tName string\n}\n```\n\n```go\nfunc (SpaceNotFoundError) Error() string\n```\n\n```go\nfunc (e SpaceNotFoundError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype SpaceQuotaNotFoundForNameError struct {\n\tName string\n}\n```\n\n```go\nfunc (SpaceQuotaNotFoundForNameError) Error() string\n```\n\n```go\nfunc (e SpaceQuotaNotFoundForNameError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype StackNotFoundError struct {\n\tGUID string\n\tName string\n}\n```\n\n```go\nfunc (e StackNotFoundError) Error() string\n```\n\n```go\nfunc (e StackNotFoundError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype StagingFailedError struct {\n\tMessage string\n}\n```\n\n```go\nfunc (StagingFailedError) Error() string\n```\n\n```go\nfunc (e StagingFailedError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype StagingFailedNoAppDetectedError struct {\n\tMessage    string\n\tBinaryName string\n}\n```\n\n```go\nfunc (StagingFailedNoAppDetectedError) Error() string\n```\n\n```go\nfunc (e StagingFailedNoAppDetectedError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype StagingTimeoutError struct {\n\tAppName string\n\tTimeout time.Duration\n}\n```\n\n```go\nfunc (StagingTimeoutError) Error() string\n```\n\n```go\nfunc (e StagingTimeoutError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype StartupTimeoutError struct {\n\tAppName    string\n\tBinaryName string\n}\n```\n\n```go\nfunc (StartupTimeoutError) Error() string\n```\n\n```go\nfunc (e StartupTimeoutError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype TCPRouteOptionsNotProvidedError struct {\n}\n```\n\n```go\nfunc (e TCPRouteOptionsNotProvidedError) Error() string\n```\n\n```go\nfunc (e TCPRouteOptionsNotProvidedError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype ThreeRequiredArgumentsError struct {\n\tArgumentName1 string\n\tArgumentName2 string\n\tArgumentName3 string\n}\n```\n\n```go\nfunc (ThreeRequiredArgumentsError) DisplayUsage()\n```\n\n```go\nfunc (ThreeRequiredArgumentsError) Error() string\n```\n\n```go\nfunc (e ThreeRequiredArgumentsError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype TipDecoratorError struct {\n\tTip       string\n\tTipKeys   map[string]interface{}\n\tBaseError error\n}\n```\n\n```go\nfunc (e TipDecoratorError) Error() string\n```\n\n```go\nfunc (e TipDecoratorError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype TooManyArgumentsError struct {\n\tExtraArgument string\n}\n```\n\n```go\nfunc (TooManyArgumentsError) DisplayUsage()\n```\n\n```go\nfunc (TooManyArgumentsError) Error() string\n```\n\n```go\nfunc (e TooManyArgumentsError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype TranslatableError interface {\n\t// Returns the untranslated error string\n\tError() string\n\tTranslate(func(string, ...interface{}) string) string\n}\n```\nTranslatableError it wraps the error interface adding a way to set the translation function on the error\n\n```go\ntype TriggerLegacyPushError struct {\n\tDomainHostRelated  []string\n\tGlobalRelated      []string\n\tInheritanceRelated bool\n\tRandomRouteRelated bool\n}\n```\n\n```go\nfunc (e TriggerLegacyPushError) Error() string\n```\n\n```go\nfunc (TriggerLegacyPushError) LegacyMain()\n```\n\n```go\nfunc (e TriggerLegacyPushError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype UAAEndpointNotFoundError struct {\n}\n```\n\n```go\nfunc (UAAEndpointNotFoundError) Error() string\n```\n\n```go\nfunc (e UAAEndpointNotFoundError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype UnauthorizedError struct {\n\tMessage string\n}\n```\n\n```go\nfunc (e UnauthorizedError) Error() string\n```\n\n```go\nfunc (e UnauthorizedError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype UnauthorizedToPerformActionError struct {\n}\n```\n\n```go\nfunc (UnauthorizedToPerformActionError) Error() string\n```\n\n```go\nfunc (e UnauthorizedToPerformActionError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype UnrefactoredCommandError struct{}\n```\n\n```go\nfunc (e UnrefactoredCommandError) Error() string\n```\n\n```go\nfunc (UnrefactoredCommandError) LegacyMain()\n```\n\n```go\ntype UnsupportedURLSchemeError struct {\n\tUnsupportedURL string\n}\n```\n\n```go\nfunc (e UnsupportedURLSchemeError) Error() string\n```\n\n```go\nfunc (e UnsupportedURLSchemeError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype UploadFailedError struct {\n\tErr error\n}\n```\n\n```go\nfunc (UploadFailedError) Error() string\n```\n\n```go\nfunc (e UploadFailedError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype V3APIDoesNotExistError struct {\n\tMessage string\n}\n```\n\n```go\nfunc (V3APIDoesNotExistError) Error() string\n```\n\n```go\nfunc (e V3APIDoesNotExistError) Translate(translate func(string, ...interface{}) string) string\n```\n\n```go\ntype V3V2SwitchError struct {\n}\n```\n\n```go\nfunc (e V3V2SwitchError) Error() string\n```\n\n","path":"github.com/CloudFoundry/cli/command/translatableerror","name":"translatableerror","synopsis":"Package translatableerror contains all the command layer translatable errors.","isRedistributable":true}
