{"modulePath":"github.phpd.cn/openshift/origin","version":"v4.1.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\n## Constants\n\n```go\nconst (\n\tKubeConfigFileSolutionWindows = `\nMake sure that the value of the --config flag passed contains a valid path:\n   --config=c:\\path\\to\\valid\\file\n`\n\tKubeConfigFileSolutionUnix = `\nMake sure that the value of the --config flag passed contains a valid path:\n   --config=/path/to/valid/file\n`\n\tKubeConfigSolutionUnix = `\nYou can unset the KUBECONFIG variable to use the default location for it:\n   unset KUBECONFIG\n\nOr you can set its value to a file that can be written to:\n   export KUBECONFIG=/path/to/file\n`\n\n\tKubeConfigSolutionWindows = `\nYou can clear the KUBECONFIG variable to use the default location for it:\n   set KUBECONFIG=\n\nOr you can set its value to a file that can be written to:\n   set KUBECONFIG=c:\\path\\to\\file`\n)\n```\n\n## Functions\n\n```go\nfunc ErrKubeConfigNotWriteable(file string, isExplicitFile bool, err error) error\n```\nErrKubeConfigNotWriteable is returned when the file pointed to by KUBECONFIG cannot be created or written to if isExplicitFile flag is true, the path to .kubeconfig was set using a --config=... flag\n\n```go\nfunc NoProjectsExistMessage(canRequestProjects bool, commandName string) string\n```\nNoProjectsExistMessage returns a message indicating that no projects have been created by the current user.\n\n## Types\n\n```go\ntype Error interface {\n\terror\n\tWithCause(error) Error\n\tWithSolution(string) Error\n\tWithDetails(string) Error\n}\n```\n\n```go\nfunc NewError(msg string, args ...interface{}) Error\n```\n\n","path":"github.phpd.cn/openshift/origin/pkg/oc/lib/errors","name":"errors","synopsis":"","isRedistributable":true}
