Warning

This document is for an in-development version of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.

Source code for pykube.exceptions

"""
Exceptions.
"""


class KubernetesError(Exception):
    """
    Base exception for all Kubernetes errors.
    """

    pass


class PyKubeError(KubernetesError):
    """
    PyKube specific errors.
    """

    pass


[docs] class HTTPError(PyKubeError):
[docs] def __init__(self, code, message): super(HTTPError, self).__init__(message) self.code = code
class ObjectDoesNotExist(PyKubeError): pass