projects
/
osm
/
N2VC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 1400: Fix stable repo urls that have changed
[osm/N2VC.git]
/
n2vc
/
exceptions.py
diff --git
a/n2vc/exceptions.py
b/n2vc/exceptions.py
index
59bcc1a
..
ae9dbfb
100644
(file)
--- a/
n2vc/exceptions.py
+++ b/
n2vc/exceptions.py
@@
-33,6
+33,14
@@
class JujuApplicationNotFound(Exception):
"""The Application cannot be found."""
"""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."""
class JujuMachineNotFound(Exception):
"""The machine cannot be found."""
@@
-163,6
+171,18
@@
class N2VCNotFound(N2VCException):
return "<{}> Not found: {}".format(type(self), super().__str__())
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
class K8sException(Exception):
"""
K8s exception