summaryrefslogtreecommitdiffstats
path: root/ipalib/errors.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2009-12-01 17:17:15 -0500
committerJason Gerard DeRose <jderose@redhat.com>2009-12-01 23:18:05 -0700
commit4348b5f8c4677443f47f3d5c906549825b25ec72 (patch)
treeb918d4823a729e476ff4a5656f01a3220479c505 /ipalib/errors.py
parentcb4c0d6caf73c1a35970a6614d5be83c6e3d5434 (diff)
downloadfreeipa-4348b5f8c4677443f47f3d5c906549825b25ec72.tar.gz
freeipa-4348b5f8c4677443f47f3d5c906549825b25ec72.tar.xz
freeipa-4348b5f8c4677443f47f3d5c906549825b25ec72.zip
Add NotImplementedError type so CA plugins can return client-friendly errors
Ignore NotImplementedError when revoking a certificate as this isn't implemented in the selfsign plugin. Also use the new type argument in x509.load_certificate(). Certificates are coming out of LDAP as binary instead of base64-encoding.
Diffstat (limited to 'ipalib/errors.py')
-rw-r--r--ipalib/errors.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/ipalib/errors.py b/ipalib/errors.py
index d94d2b070..d1d39a378 100644
--- a/ipalib/errors.py
+++ b/ipalib/errors.py
@@ -746,6 +746,14 @@ class PasswordMismatch(InvocationError):
errno = 3011
format = _('Passwords do not match')
+class NotImplementedError(InvocationError):
+ """
+ **3012** Raise when a function hasn't been implemented.
+ """
+
+ errno = 3012
+ format = _('Command not implemented')
+
##############################################################################
# 4000 - 4999: Execution errors