X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=blobdiff_plain;f=n2vc%2Fexceptions.py;h=35962b2ba2fdef4b05626f056a3722a2d3d95718;hp=4b83e3ffa97c79b764058eaab1f01e5255ce78f9;hb=8b1bcf0b86fe042703a59f14ba62537406d69eee;hpb=2911434d2a0e24292c73f640f5df4cac9c447867 diff --git a/n2vc/exceptions.py b/n2vc/exceptions.py index 4b83e3f..35962b2 100644 --- a/n2vc/exceptions.py +++ b/n2vc/exceptions.py @@ -40,6 +40,14 @@ class AuthenticationFailed(Exception): """The authentication for the specified user failed.""" +class InvalidCACertificate(Exception): + """The CA Certificate is not valid.""" + + +class NotImplemented(Exception): + """The method is not implemented.""" + + class N2VCException(Exception): """ N2VC exception base class @@ -107,6 +115,7 @@ class N2VCExecutionException(N2VCException): def __str__(self): return '<{}> Error executing primitive {} failed: {}'.format(type(self), self.primitive_name, super().__str__()) + class N2VCInvalidCertificate(N2VCException): """ Invalid certificate @@ -117,3 +126,4 @@ class N2VCInvalidCertificate(N2VCException): def __str__(self): return '<{}> Invalid certificate: {}'.format(type(self), super().__str__()) +