Exceptions


Summary


Custom exceptions for mpaas.

exception src.mpaas.mpaas_exceptions.ChartExistsError(project_name, chart_name)

Bases: src.mpaas.mpaas_exceptions.ResourceExistsError

Raised when a chart already exists.

exception src.mpaas.mpaas_exceptions.ConfigExistsError(config_name)

Bases: src.mpaas.mpaas_exceptions.ResourceExistsError

Raised when a config with the same name already exists.

exception src.mpaas.mpaas_exceptions.DeployError(resource)

Bases: src.mpaas.mpaas_exceptions.MpaasError

Raised when here is an error in the kubectl deploying process

exception src.mpaas.mpaas_exceptions.EmptyConfigDirectoryError

Bases: src.mpaas.mpaas_exceptions.MpaasError

Raised when the config directory is empty

exception src.mpaas.mpaas_exceptions.EmptyDirectoryError(directory)

Bases: src.mpaas.mpaas_exceptions.MpaasError

Raised when a directory that is supposed to contain data is empty

exception src.mpaas.mpaas_exceptions.EmptyLinksError(project)

Bases: src.mpaas.mpaas_exceptions.MpaasError

Raised when the links.yaml file in a project is empty.

exception src.mpaas.mpaas_exceptions.LinkExistsError(project_name)

Bases: src.mpaas.mpaas_exceptions.ResourceExistsError

Raised when a link already exists

exception src.mpaas.mpaas_exceptions.MissingChartError(project_name, chart_name)

Bases: src.mpaas.mpaas_exceptions.MissingResourceError

Raised when a chart cannot be found.

exception src.mpaas.mpaas_exceptions.MissingConfigError(config_name)

Bases: src.mpaas.mpaas_exceptions.MissingResourceError

Raised when a target config file does not exist

exception src.mpaas.mpaas_exceptions.MissingDirectoryError(directory)

Bases: src.mpaas.mpaas_exceptions.MissingResourceError

Raised when target directory does not exist

exception src.mpaas.mpaas_exceptions.MissingLinksError(project)

Bases: src.mpaas.mpaas_exceptions.MissingResourceError

Raised when the links.yaml file is empty or does not exist

exception src.mpaas.mpaas_exceptions.MissingProjectError(project_name)

Bases: src.mpaas.mpaas_exceptions.MissingResourceError

Raised when a project cannot be found.

exception src.mpaas.mpaas_exceptions.MissingRancherConfigError

Bases: src.mpaas.mpaas_exceptions.MissingResourceError

Raised when rancher cannot find its config

exception src.mpaas.mpaas_exceptions.MissingResourceError(resource_type, resource_name, context=None)

Bases: src.mpaas.mpaas_exceptions.MpaasError

Raised when a resource cannot be found.

exception src.mpaas.mpaas_exceptions.MissingTemplateError(template_name)

Bases: src.mpaas.mpaas_exceptions.MissingResourceError

Raised when target template does not exist at target location

exception src.mpaas.mpaas_exceptions.MissingValueError(value_name, chart_name)

Bases: src.mpaas.mpaas_exceptions.MissingResourceError

Raised when a value cannot be found in a yaml file.

exception src.mpaas.mpaas_exceptions.MpaasError

Bases: Exception

Highest level mpaas Eception.

exception src.mpaas.mpaas_exceptions.NoConfigError

Bases: src.mpaas.mpaas_exceptions.MpaasError

Raised when an action that needs a kubeconfig file cannot find it

exception src.mpaas.mpaas_exceptions.NoContextError

Bases: src.mpaas.mpaas_exceptions.MpaasError

Raised when the current context is ‘None’

exception src.mpaas.mpaas_exceptions.NoValidTemplateError(directory)

Bases: src.mpaas.mpaas_exceptions.MpaasError

Raised when no valid templates could be found in target directory

exception src.mpaas.mpaas_exceptions.ProjectExistsError(project_name)

Bases: src.mpaas.mpaas_exceptions.ResourceExistsError

Raised when a project already exists.

exception src.mpaas.mpaas_exceptions.RenderError(resource)

Bases: src.mpaas.mpaas_exceptions.MpaasError

Raised when here is an error in the helm templating process

exception src.mpaas.mpaas_exceptions.RequirementsFileError(chart_name)

Bases: src.mpaas.mpaas_exceptions.MpaasError

Raised when the requirements.yaml file in a chart is not fill a required.

exception src.mpaas.mpaas_exceptions.ResourceExistsError(resource_type, resource_name, context=None)

Bases: src.mpaas.mpaas_exceptions.MpaasError

Raised when a resource already exists.

exception src.mpaas.mpaas_exceptions.TemplateFetchError(template_name)

Bases: src.mpaas.mpaas_exceptions.MpaasError

Raised when a template could not be fetched from a remote chart museum