Lightweight Python 3+ client library for Kubernetes (pykube-ng) https://pykube.readthedocs.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
415 B

"""
Exceptions.
"""
class KubernetesError(Exception):
"""
Base exception for all Kubernetes errors.
"""
pass
class PyKubeError(KubernetesError):
"""
PyKube specific errors.
"""
pass
class HTTPError(PyKubeError):
def __init__(self, code, message):
super(HTTPError, self).__init__(message)
self.code = code
class ObjectDoesNotExist(PyKubeError):
pass