translatableerror

package
v6.29.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package translatableerror contains all the command layer translatable errors.

In order to prevent future import cycles, this package should **not** have any non-builtin dependancies!!!

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APINotFoundError

type APINotFoundError struct {
	URL string
}

func (APINotFoundError) Error

func (APINotFoundError) Error() string

func (APINotFoundError) Translate

func (e APINotFoundError) Translate(translate func(string, ...interface{}) string) string

type APIRequestError

type APIRequestError struct {
	Err error
}

func (APIRequestError) Error

func (APIRequestError) Error() string

func (APIRequestError) Translate

func (e APIRequestError) Translate(translate func(string, ...interface{}) string) string

type AddPluginRepositoryError

type AddPluginRepositoryError struct {
	Name    string
	URL     string
	Message string
}

func (AddPluginRepositoryError) Error

func (AddPluginRepositoryError) Translate

func (e AddPluginRepositoryError) Translate(translate func(string, ...interface{}) string) string

type AppNotFoundInManifestError

type AppNotFoundInManifestError struct {
	Name string
}

func (AppNotFoundInManifestError) Error

func (AppNotFoundInManifestError) Translate

func (e AppNotFoundInManifestError) Translate(translate func(string, ...interface{}) string) string

type ApplicationNotFoundError

type ApplicationNotFoundError struct {
	Name string
}

func (ApplicationNotFoundError) Error

func (ApplicationNotFoundError) Translate

func (e ApplicationNotFoundError) Translate(translate func(string, ...interface{}) string) string

type ArgumentCombinationError

type ArgumentCombinationError struct {
	Arg1 string
	Arg2 string
}

ArgumentCombinationError represent an error caused by using two command line arguments that cannot be used together.

func (ArgumentCombinationError) DisplayUsage

func (ArgumentCombinationError) DisplayUsage()

func (ArgumentCombinationError) Error

func (ArgumentCombinationError) Translate

func (e ArgumentCombinationError) Translate(translate func(string, ...interface{}) string) string

type AssignDropletError

type AssignDropletError struct {
	Message string
}

AssignDropletError is returned when assigning the current droplet of an app fails

func (AssignDropletError) Error

func (AssignDropletError) Error() string

func (AssignDropletError) Translate

func (e AssignDropletError) Translate(translate func(string, ...interface{}) string) string

type BadCredentialsError

type BadCredentialsError struct{}

func (BadCredentialsError) Error

func (BadCredentialsError) Error() string

func (BadCredentialsError) Translate

func (e BadCredentialsError) Translate(translate func(string, ...interface{}) string) string

type CommandLineArgsWithMultipleAppsError

type CommandLineArgsWithMultipleAppsError struct {
}

func (CommandLineArgsWithMultipleAppsError) Error

func (CommandLineArgsWithMultipleAppsError) Translate

func (e CommandLineArgsWithMultipleAppsError) Translate(translate func(string, ...interface{}) string) string

type DownloadPluginHTTPError

type DownloadPluginHTTPError struct {
	Message string
}

func (DownloadPluginHTTPError) Error

func (DownloadPluginHTTPError) Translate

func (e DownloadPluginHTTPError) Translate(translate func(string, ...interface{}) string) string

type EmptyDirectoryError

type EmptyDirectoryError struct {
	Path string
}

func (EmptyDirectoryError) Error

func (e EmptyDirectoryError) Error() string

func (EmptyDirectoryError) Translate

func (e EmptyDirectoryError) Translate(translate func(string, ...interface{}) string) string

type FetchingPluginInfoFromRepositoriesError

type FetchingPluginInfoFromRepositoriesError struct {
	Message        string
	RepositoryName string
}

func (FetchingPluginInfoFromRepositoriesError) Error

func (FetchingPluginInfoFromRepositoriesError) Translate

func (e FetchingPluginInfoFromRepositoriesError) Translate(translate func(string, ...interface{}) string) string

type FileChangedError

type FileChangedError struct {
	Filename string
}

func (FileChangedError) Error

func (e FileChangedError) Error() string

func (FileChangedError) Translate

func (e FileChangedError) Translate(translate func(string, ...interface{}) string) string

type FileNotFoundError

type FileNotFoundError struct {
	Path string
}

FileNotFoundError is returned when a local plugin binary is not found during installation.

func (FileNotFoundError) Error

func (FileNotFoundError) Error() string

func (FileNotFoundError) Translate

func (e FileNotFoundError) Translate(translate func(string, ...interface{}) string) string

type GettingPluginRepositoryError

type GettingPluginRepositoryError struct {
	Name    string
	Message string
}

GettingPluginRepositoryError is returned when there's an error accessing the plugin repository

func (GettingPluginRepositoryError) Error

func (GettingPluginRepositoryError) Translate

func (e GettingPluginRepositoryError) Translate(translate func(string, ...interface{}) string) string

type HTTPHealthCheckInvalidError

type HTTPHealthCheckInvalidError struct {
}

func (HTTPHealthCheckInvalidError) Error

func (HTTPHealthCheckInvalidError) Translate

func (e HTTPHealthCheckInvalidError) Translate(translate func(string, ...interface{}) string) string

type HealthCheckTypeUnsupportedError

type HealthCheckTypeUnsupportedError struct {
	SupportedTypes []string
}

func (HealthCheckTypeUnsupportedError) Error

func (HealthCheckTypeUnsupportedError) Translate

func (e HealthCheckTypeUnsupportedError) Translate(translate func(string, ...interface{}) string) string

type InvalidRefreshTokenError

type InvalidRefreshTokenError struct {
}

func (InvalidRefreshTokenError) Error

func (InvalidRefreshTokenError) Translate

func (e InvalidRefreshTokenError) Translate(translate func(string, ...interface{}) string) string

type InvalidSSLCertError

type InvalidSSLCertError struct {
	API string
}

func (InvalidSSLCertError) Error

func (InvalidSSLCertError) Error() string

func (InvalidSSLCertError) Translate

func (e InvalidSSLCertError) Translate(translate func(string, ...interface{}) string) string

type IsolationSegmentNotFoundError

type IsolationSegmentNotFoundError struct {
	Name string
}

func (IsolationSegmentNotFoundError) Error

func (IsolationSegmentNotFoundError) Translate

func (e IsolationSegmentNotFoundError) Translate(translate func(string, ...interface{}) string) string

type JSONSyntaxError

type JSONSyntaxError struct {
	Err error
}

func (JSONSyntaxError) Error

func (e JSONSyntaxError) Error() string

func (JSONSyntaxError) Translate

func (e JSONSyntaxError) Translate(translate func(string, ...interface{}) string) string

type JobFailedError

type JobFailedError struct {
	JobGUID string
	Message string
}

func (JobFailedError) Error

func (JobFailedError) Error() string

func (JobFailedError) Translate

func (e JobFailedError) Translate(translate func(string, ...interface{}) string) string

type JobTimeoutError

type JobTimeoutError struct {
	JobGUID string
	Timeout time.Duration
}

func (JobTimeoutError) Error

func (JobTimeoutError) Error() string

func (JobTimeoutError) Translate

func (e JobTimeoutError) Translate(translate func(string, ...interface{}) string) string

type LifecycleMinimumAPIVersionNotMetError

type LifecycleMinimumAPIVersionNotMetError struct {
	CurrentVersion string
	MinimumVersion string
}

func (LifecycleMinimumAPIVersionNotMetError) Error

func (LifecycleMinimumAPIVersionNotMetError) Translate

func (e LifecycleMinimumAPIVersionNotMetError) Translate(translate func(string, ...interface{}) string) string

type MinimumAPIVersionNotMetError

type MinimumAPIVersionNotMetError struct {
	CurrentVersion string
	MinimumVersion string
}

func (MinimumAPIVersionNotMetError) Error

func (MinimumAPIVersionNotMetError) Translate

func (e MinimumAPIVersionNotMetError) Translate(translate func(string, ...interface{}) string) string

type NoAPISetError

type NoAPISetError struct {
	BinaryName string
}

func (NoAPISetError) Error

func (NoAPISetError) Error() string

func (NoAPISetError) Translate

func (e NoAPISetError) Translate(translate func(string, ...interface{}) string) string

type NoCompatibleBinaryError

type NoCompatibleBinaryError struct {
}

func (NoCompatibleBinaryError) Error

func (e NoCompatibleBinaryError) Error() string

func (NoCompatibleBinaryError) Translate

func (e NoCompatibleBinaryError) Translate(translate func(string, ...interface{}) string) string

type NoDomainsFoundError

type NoDomainsFoundError struct {
}

func (NoDomainsFoundError) Error

func (NoDomainsFoundError) Error() string

func (NoDomainsFoundError) Translate

func (e NoDomainsFoundError) Translate(translate func(string, ...interface{}) string) string

type NoOrganizationTargetedError

type NoOrganizationTargetedError struct {
	BinaryName string
}

func (NoOrganizationTargetedError) Error

func (NoOrganizationTargetedError) Translate

func (e NoOrganizationTargetedError) Translate(translate func(string, ...interface{}) string) string

type NoPluginRepositoriesError

type NoPluginRepositoriesError struct{}

func (NoPluginRepositoriesError) Error

func (NoPluginRepositoriesError) Translate

func (e NoPluginRepositoriesError) Translate(translate func(string, ...interface{}) string) string

type NoSpaceTargetedError

type NoSpaceTargetedError struct {
	BinaryName string
}

func (NoSpaceTargetedError) Error

func (NoSpaceTargetedError) Error() string

func (NoSpaceTargetedError) Translate

func (e NoSpaceTargetedError) Translate(translate func(string, ...interface{}) string) string

type NotLoggedInError

type NotLoggedInError struct {
	BinaryName string
}

func (NotLoggedInError) Error

func (NotLoggedInError) Error() string

func (NotLoggedInError) Translate

func (e NotLoggedInError) Translate(translate func(string, ...interface{}) string) string

type OrganizationNotFoundError

type OrganizationNotFoundError struct {
	Name string
}

func (OrganizationNotFoundError) Error

func (OrganizationNotFoundError) Translate

func (e OrganizationNotFoundError) Translate(translate func(string, ...interface{}) string) string

type ParseArgumentError

type ParseArgumentError struct {
	ArgumentName string
	ExpectedType string
}

func (ParseArgumentError) DisplayUsage

func (ParseArgumentError) DisplayUsage()

func (ParseArgumentError) Error

func (ParseArgumentError) Error() string

func (ParseArgumentError) Translate

func (e ParseArgumentError) Translate(translate func(string, ...interface{}) string) string

type PluginAlreadyInstalledError

type PluginAlreadyInstalledError struct {
	BinaryName string
	Name       string
	Version    string
}

PluginAlreadyInstalledError is returned when the plugin has the same name as an installed plugin.

func (PluginAlreadyInstalledError) Error

func (PluginAlreadyInstalledError) Translate

func (e PluginAlreadyInstalledError) Translate(translate func(string, ...interface{}) string) string

type PluginBinaryRemoveFailedError

type PluginBinaryRemoveFailedError struct {
	Err error
}

PluginBinaryRemoveFailedError is returned when the removal of a plugin binary fails.

func (PluginBinaryRemoveFailedError) Error

func (PluginBinaryRemoveFailedError) Translate

func (e PluginBinaryRemoveFailedError) Translate(translate func(string, ...interface{}) string) string

type PluginBinaryUninstallError

type PluginBinaryUninstallError struct {
	Err error
}

PluginBinaryUninstallError is returned when running the plugin's uninstall hook fails.

func (PluginBinaryUninstallError) Error

func (PluginBinaryUninstallError) Translate

func (e PluginBinaryUninstallError) Translate(translate func(string, ...interface{}) string) string

type PluginCommandsConflictError

type PluginCommandsConflictError struct {
	PluginName     string
	PluginVersion  string
	CommandNames   []string
	CommandAliases []string
}

PluginCommandConflictError is returned when a plugin command name conflicts with a native or existing plugin command name.

func (PluginCommandsConflictError) Error

func (PluginCommandsConflictError) Translate

func (e PluginCommandsConflictError) Translate(translate func(string, ...interface{}) string) string

type PluginInvalidError

type PluginInvalidError struct {
	Err error
}

PluginInvalidError is returned with a plugin is invalid because it is missing a name or has 0 commands.

func (PluginInvalidError) Error

func (e PluginInvalidError) Error() string

func (PluginInvalidError) Translate

func (e PluginInvalidError) Translate(translate func(string, ...interface{}) string) string

type PluginNotFoundError

type PluginNotFoundError struct {
	PluginName string
}

func (PluginNotFoundError) Error

func (e PluginNotFoundError) Error() string

func (PluginNotFoundError) Translate

func (e PluginNotFoundError) Translate(translate func(string, ...interface{}) string) string

type PluginNotFoundInRepositoryError

type PluginNotFoundInRepositoryError struct {
	BinaryName     string
	PluginName     string
	RepositoryName string
}

func (PluginNotFoundInRepositoryError) Error

func (PluginNotFoundInRepositoryError) Translate

func (e PluginNotFoundInRepositoryError) Translate(translate func(string, ...interface{}) string) string

type PluginNotFoundOnDiskOrInAnyRepositoryError

type PluginNotFoundOnDiskOrInAnyRepositoryError struct {
	PluginName string
	BinaryName string
}

func (PluginNotFoundOnDiskOrInAnyRepositoryError) Error

func (PluginNotFoundOnDiskOrInAnyRepositoryError) Translate

func (e PluginNotFoundOnDiskOrInAnyRepositoryError) Translate(translate func(string, ...interface{}) string) string

type RepositoryNameTakenError

type RepositoryNameTakenError struct {
	Name string
}

RepositoryNameTakenError is returned when adding a plugin repository fails due to a repository already existing with the same name

func (RepositoryNameTakenError) Error

func (RepositoryNameTakenError) Translate

func (e RepositoryNameTakenError) Translate(translate func(string, ...interface{}) string) string

type RepositoryNotRegisteredError

type RepositoryNotRegisteredError struct {
	Name string
}

func (RepositoryNotRegisteredError) Error

func (RepositoryNotRegisteredError) Translate

func (e RepositoryNotRegisteredError) Translate(translate func(string, ...interface{}) string) string

type RequiredArgumentError

type RequiredArgumentError struct {
	ArgumentName string
}

func (RequiredArgumentError) DisplayUsage

func (RequiredArgumentError) DisplayUsage()

func (RequiredArgumentError) Error

func (RequiredArgumentError) Error() string

func (RequiredArgumentError) Translate

func (e RequiredArgumentError) Translate(translate func(string, ...interface{}) string) string

type RequiredNameForPushError

type RequiredNameForPushError struct {
}

func (RequiredNameForPushError) DisplayUsage

func (RequiredNameForPushError) DisplayUsage()

func (RequiredNameForPushError) Error

func (RequiredNameForPushError) Translate

func (e RequiredNameForPushError) Translate(translate func(string, ...interface{}) string) string

type RouteInDifferentSpaceError

type RouteInDifferentSpaceError struct {
	Route string
}

func (RouteInDifferentSpaceError) Error

func (RouteInDifferentSpaceError) Translate

func (e RouteInDifferentSpaceError) Translate(translate func(string, ...interface{}) string) string

type RunTaskError

type RunTaskError struct {
	Message string
}

func (RunTaskError) Error

func (RunTaskError) Error() string

func (RunTaskError) Translate

func (e RunTaskError) Translate(translate func(string, ...interface{}) string) string

type SSLCertError

type SSLCertError struct {
	Message string
}

func (SSLCertError) Error

func (SSLCertError) Error() string

func (SSLCertError) Translate

func (e SSLCertError) Translate(translate func(string, ...interface{}) string) string

type SecurityGroupNotFoundError

type SecurityGroupNotFoundError struct {
	Name string
}

func (SecurityGroupNotFoundError) Error

func (SecurityGroupNotFoundError) Translate

func (e SecurityGroupNotFoundError) Translate(translate func(string, ...interface{}) string) string

type ServiceInstanceNotFoundError

type ServiceInstanceNotFoundError struct {
	Name string
}

func (ServiceInstanceNotFoundError) Error

func (ServiceInstanceNotFoundError) Translate

func (e ServiceInstanceNotFoundError) Translate(translate func(string, ...interface{}) string) string

type SpaceNotFoundError

type SpaceNotFoundError struct {
	Name string
}

func (SpaceNotFoundError) Error

func (SpaceNotFoundError) Error() string

func (SpaceNotFoundError) Translate

func (e SpaceNotFoundError) Translate(translate func(string, ...interface{}) string) string

type StagingFailedError

type StagingFailedError struct {
	Message string
}

func (StagingFailedError) Error

func (StagingFailedError) Error() string

func (StagingFailedError) Translate

func (e StagingFailedError) Translate(translate func(string, ...interface{}) string) string

type StagingFailedNoAppDetectedError

type StagingFailedNoAppDetectedError struct {
	Message    string
	BinaryName string
}

func (StagingFailedNoAppDetectedError) Error

func (StagingFailedNoAppDetectedError) Translate

func (e StagingFailedNoAppDetectedError) Translate(translate func(string, ...interface{}) string) string

type StagingTimeoutError

type StagingTimeoutError struct {
	AppName string
	Timeout time.Duration
}

func (StagingTimeoutError) Error

func (StagingTimeoutError) Error() string

func (StagingTimeoutError) Translate

func (e StagingTimeoutError) Translate(translate func(string, ...interface{}) string) string

type StartupTimeoutError

type StartupTimeoutError struct {
	AppName    string
	BinaryName string
}

func (StartupTimeoutError) Error

func (StartupTimeoutError) Error() string

func (StartupTimeoutError) Translate

func (e StartupTimeoutError) Translate(translate func(string, ...interface{}) string) string

type ThreeRequiredArgumentsError

type ThreeRequiredArgumentsError struct {
	ArgumentName1 string
	ArgumentName2 string
	ArgumentName3 string
}

func (ThreeRequiredArgumentsError) DisplayUsage

func (ThreeRequiredArgumentsError) DisplayUsage()

func (ThreeRequiredArgumentsError) Error

func (ThreeRequiredArgumentsError) Translate

func (e ThreeRequiredArgumentsError) Translate(translate func(string, ...interface{}) string) string

type UnsuccessfulStartError

type UnsuccessfulStartError struct {
	AppName    string
	BinaryName string
}

func (UnsuccessfulStartError) Error

func (UnsuccessfulStartError) Translate

func (e UnsuccessfulStartError) Translate(translate func(string, ...interface{}) string) string

type UnsupportedURLSchemeError

type UnsupportedURLSchemeError struct {
	UnsupportedURL string
}

func (UnsupportedURLSchemeError) Error

func (UnsupportedURLSchemeError) Translate

func (e UnsupportedURLSchemeError) Translate(translate func(string, ...interface{}) string) string

type UploadFailedError

type UploadFailedError struct {
	Err error
}

func (UploadFailedError) Error

func (UploadFailedError) Error() string

func (UploadFailedError) Translate

func (e UploadFailedError) Translate(translate func(string, ...interface{}) string) string

type V3APIDoesNotExistError

type V3APIDoesNotExistError struct {
	Message string
}

func (V3APIDoesNotExistError) Error

func (V3APIDoesNotExistError) Translate

func (e V3APIDoesNotExistError) Translate(translate func(string, ...interface{}) string) string

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL