X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=blobdiff_plain;f=n2vc%2Fexceptions.py;h=256860edfb92be5489f7f06533401e20668a3896;hp=09f3573c6d3b03ddba952ae5f475d2a0e9493d2b;hb=b78b3e0963c1fbe31daaf71dabac5362588bb88b;hpb=f52cb7cfeb4e24febe7c66af3d5bb275a50d7f99 diff --git a/n2vc/exceptions.py b/n2vc/exceptions.py index 09f3573..256860e 100644 --- a/n2vc/exceptions.py +++ b/n2vc/exceptions.py @@ -17,10 +17,38 @@ class JujuCharmNotFound(Exception): """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 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.""" + + +class JujuK8sProxycharmNotSupported(Exception): + """K8s Proxy Charms not supported in this installation.""" + + class N2VCPrimitiveExecutionFailed(Exception): """Something failed while attempting to execute a primitive.""" @@ -157,3 +185,7 @@ class K8sException(Exception): def __repr__(self): return self._message + + +class EntityInvalidException(Exception): + """Entity is not valid, the type does not match any EntityType."""