diff options
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/errors.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ipalib/errors.py b/ipalib/errors.py index a391ada67..0524cad87 100644 --- a/ipalib/errors.py +++ b/ipalib/errors.py @@ -1682,6 +1682,23 @@ class ProtectedEntryError(ExecutionError): format = _('%(label)s %(key)s cannot be deleted/modified: %(reason)s') +class CertificateInvalidError(CertificateError): + """ + **4310** Raised when a certificate is not valid + + For example: + + >>> raise CertificateInvalidError(name=_(u'CA')) + Traceback (most recent call last): + ... + CertificateInvalidError: CA certificate is not valid + + """ + + errno = 4310 + format = _('%(name)s certificate is not valid') + + ############################################################################## # 5000 - 5999: Generic errors |