X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=n2vc%2Fexceptions.py;h=ae9dbfbc2996ad32eca59819d1bca4c4b0331204;hb=950f8451deba524b3882b1c6cb09e48ab5e2fdbd;hp=59bcc1adbaf262040ea6b6d7dd4d5f860b370554;hpb=bd808f24d6abbdd40ec7d9456b10b8f1be17fb08;p=osm%2FN2VC.git diff --git a/n2vc/exceptions.py b/n2vc/exceptions.py index 59bcc1a..ae9dbfb 100644 --- a/n2vc/exceptions.py +++ b/n2vc/exceptions.py @@ -33,6 +33,14 @@ class JujuApplicationNotFound(Exception): """The Application cannot be found.""" +class JujuLeaderUnitNotFound(Exception): + """The Application cannot be found.""" + + +class JujuActionNotFound(Exception): + """The Action cannot be found.""" + + class JujuMachineNotFound(Exception): """The machine cannot be found.""" @@ -163,6 +171,18 @@ class N2VCNotFound(N2VCException): return "<{}> Not found: {}".format(type(self), super().__str__()) +class JujuError(N2VCException): + """ + Juju Error + """ + + def __init__(self, message: str = ""): + N2VCException.__init__(self, message=message) + + def __str__(self): + return "<{}> Juju Error: {}".format(type(self), super().__str__()) + + class K8sException(Exception): """ K8s exception