projects
/
osm
/
N2VC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Initial refactor of N2VC
[osm/N2VC.git]
/
n2vc
/
exceptions.py
diff --git
a/n2vc/exceptions.py
b/n2vc/exceptions.py
index
09f3573
..
061cd7a
100644
(file)
--- a/
n2vc/exceptions.py
+++ b/
n2vc/exceptions.py
@@
-17,10
+17,26
@@
class JujuCharmNotFound(Exception):
"""The Charm can't be found or is not readable."""
"""The Charm can't be found or is not readable."""
+class JujuControllerFailedConnecting(Exception):
+ """Failed connecting to juju controller."""
+
+
+class JujuModelAlreadyExists(Exception):
+ """The model already exists."""
+
+
class JujuApplicationExists(Exception):
"""The Application already exists."""
class JujuApplicationExists(Exception):
"""The Application already exists."""
+class JujuApplicationNotFound(Exception):
+ """The Application cannot be found."""
+
+
+class JujuMachineNotFound(Exception):
+ """The machine cannot be found."""
+
+
class N2VCPrimitiveExecutionFailed(Exception):
"""Something failed while attempting to execute a primitive."""
class N2VCPrimitiveExecutionFailed(Exception):
"""Something failed while attempting to execute a primitive."""
@@
-157,3
+173,7
@@
class K8sException(Exception):
def __repr__(self):
return self._message
def __repr__(self):
return self._message
+
+
+class EntityInvalidException(Exception):
+ """Entity is not valid, the type does not match any EntityType."""