X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=blobdiff_plain;f=n2vc%2Fexceptions.py;h=9867cb99f2997e3f1afbd854bbaa2190fb6c538c;hp=1f48661c119d55132ade578685d12e72d33be9ca;hb=7e887b22fdc176021b215c3b83a052276fdbeefc;hpb=cdf0b8e857e1373410e61bc72cd1a9f5c1ab7ca7 diff --git a/n2vc/exceptions.py b/n2vc/exceptions.py index 1f48661..9867cb9 100644 --- a/n2vc/exceptions.py +++ b/n2vc/exceptions.py @@ -111,6 +111,18 @@ class N2VCNotFound(N2VCException): return "<{}> Not found: {}".format(type(self), super().__str__()) +class N2VCApplicationExists(N2VCException): + """ + Application Exists + """ + + def __init__(self, message: str = ""): + N2VCException.__init__(self, message=message) + + def __str__(self): + return "<{}> Application Exists: {}".format(type(self), super().__str__()) + + class JujuError(N2VCException): """ Juju Error