projects
/
osm
/
N2VC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add N2VCNotFound exception
[osm/N2VC.git]
/
n2vc
/
exceptions.py
diff --git
a/n2vc/exceptions.py
b/n2vc/exceptions.py
index
a663c62
..
815d4ea
100644
(file)
--- a/
n2vc/exceptions.py
+++ b/
n2vc/exceptions.py
@@
-125,6
+125,18
@@
class N2VCInvalidCertificate(N2VCException):
return '<{}> Invalid certificate: {}'.format(type(self), super().__str__())
return '<{}> Invalid certificate: {}'.format(type(self), super().__str__())
+class N2VCNotFound(N2VCException):
+ """
+ Not found
+ """
+
+ def __init__(self, message: str = ''):
+ N2VCException.__init__(self, message=message)
+
+ def __str__(self):
+ return '<{}> Not found: {}'.format(type(self), super().__str__())
+
+
class K8sException(Exception):
"""
K8s exception
class K8sException(Exception):
"""
K8s exception